Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rTorch)
  > 
  > test_check("rTorch")
  ── 1. Error: Python and R share variables (@test_r_torch_share_objects.R#82)  ──
  RuntimeEvaluation error: <text>:1:1: unexpected input
  1: _
      ^.
  
  Detailed traceback: 
    File "<string>", line 1, in <module>
    File "/data/gannet/ripley/R/test-clang/reticulate/python/rpytools/call.py", line 21, in python_function
      raise RuntimeError(res[kErrorKey])
  Backtrace:
   1. reticulate::py_run_string("r.__dir__()")
   2. reticulate:::py_run_string_impl(code, local, convert)
  
  ── 2. Failure: Python string of commands returns a dictionary (@test_types.R#81)
  length(names(prs)) not equal to 5.
  1/1 mismatches
  [1] 15 - 5 == 10
  
  ── 3. Failure: Python string of commands returns a dictionary (@test_types.R#82)
  length(names(py_to_r(prs))) not equal to 12.
  1/1 mismatches
  [1] 20 - 12 == 8
  
  ── 4. Failure: Python string of commands returns a dictionary (@test_types.R#84)
  all(names(prs) %in% c("a", "np", "r", "R", "sys")) isn't true.
  
  ── 5. Failure: Python string of commands returns a dictionary (@test_types.R#85)
  names(py_to_r(prs)) not equal to c(...).
  Lengths differ: 20 is not 12
  
  ── 6. Failure: Python string of commands returns a dictionary (@test_types.R#89)
  prs$keys() is not an S3 object
  
  ── 7. Failure: Python string of commands returns a dictionary (@test_types.R#89)
  prs$keys() inherits from `character` not `python.builtin.dict_keys`.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 99 | SKIPPED: 38 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: Python and R share variables (@test_r_torch_share_objects.R#82) 
  2. Failure: Python string of commands returns a dictionary (@test_types.R#81) 
  3. Failure: Python string of commands returns a dictionary (@test_types.R#82) 
  4. Failure: Python string of commands returns a dictionary (@test_types.R#84) 
  5. Failure: Python string of commands returns a dictionary (@test_types.R#85) 
  6. Failure: Python string of commands returns a dictionary (@test_types.R#89) 
  7. Failure: Python string of commands returns a dictionary (@test_types.R#89) 
  
  Error: testthat unit tests failed
  Execution halted