Running ‘testthat.R’ [20s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > if (reticulate::py_module_available("sympy")) {
  +   local_sympy <- reticulate::import("sympy")
  +   
  +   if (base::numeric_version(local_sympy$`__version__`) >= "1.4") {
  +     # All okay:
  +     library(caracas)
  +     
  +     test_check("caracas")
  +   }
  + }
  
  Attaching package: 'caracas'
  
  The following objects are masked from 'package:base':
  
      %*%, diag, diag<-
  
  ── 1. Error: diag (@test-linalg.R#28)  ─────────────────────────────────────────
  AttributeMutableDenseMatrix has no attribute diagonal.
  
  Detailed traceback: 
    File "/data/gannet/ripley/.virtualenvs/r-reticulate/lib/python2.7/site-packages/sympy/matrices/matrices.py", line 2141, in __getattr__
      "%s has no attribute %s." % (self.__class__.__name__, attr))
  Backtrace:
    1. testthat::expect_equal(as.character(diag(B)), "Matrix([[x, x^2]])")
    5. caracas:::diag.caracas_symbol(B)
    9. reticulate:::`$.python.builtin.object`(x$pyobj, "diagonal")
   10. reticulate:::py_get_attr_or_item(x, name, TRUE)
   11. reticulate::py_get_attr(x, name)
   12. reticulate:::py_get_attr_impl(x, name, silent)
  
  ── 2. Error: diag subassignment (@test-subset.R#79)  ───────────────────────────
  AttributeMutableDenseMatrix has no attribute diagonal.
  
  Detailed traceback: 
    File "/data/gannet/ripley/.virtualenvs/r-reticulate/lib/python2.7/site-packages/sympy/matrices/matrices.py", line 2141, in __getattr__
      "%s has no attribute %s." % (self.__class__.__name__, attr))
  Backtrace:
    1. testthat::expect_equal(as.character(diag(B)), "Matrix([[1, 1, 1, 1, 1]])")
    5. caracas:::diag.caracas_symbol(B)
    9. reticulate:::`$.python.builtin.object`(x$pyobj, "diagonal")
   10. reticulate:::py_get_attr_or_item(x, name, TRUE)
   11. reticulate::py_get_attr(x, name)
   12. reticulate:::py_get_attr_impl(x, name, silent)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 231 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: diag (@test-linalg.R#28) 
  2. Error: diag subassignment (@test-subset.R#79) 
  
  Error: testthat unit tests failed
  Execution halted