Running 'testthat.R' [21s/23s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > py_ver <- tryCatch({
  +   cfg <- reticulate::py_config()
  +   base::numeric_version(cfg$version)
  + }, error = function(e) {
  +   base::numeric_version("1")
  + })
  > 
  > if (py_ver >= "3" && 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':
  
      %*%, det, diag, diag<-
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 299 ]
  
  == Failed tests ================================================================
  -- Error (test-as_sym.R:25:3): smoke -------------------------------------------
  <Rcpp::exception/C++Error/error/condition>
  Error in `py_call_impl(callable, dots$args, dots$keywords)`: AssertionError: 
  
  Detailed traceback:
    File "/usr/lib/python3/dist-packages/sympy/matrices/dense.py", line 619, in matrix_multiply_elementwise
      return A.multiply_elementwise(B)
    File "/usr/lib/python3/dist-packages/sympy/matrices/common.py", line 2832, in multiply_elementwise
      return self._eval_matrix_mul_elementwise(other)
    File "/usr/lib/python3/dist-packages/sympy/matrices/repmatrix.py", line 239, in _eval_matrix_mul_elementwise
      rep = self._rep.mul_elementwise(other._rep)
    File "/usr/lib/python3/dist-packages/sympy/polys/matrices/domainmatrix.py", line 980, in mul_elementwise
      assert A.domain == B.domain
  
  Backtrace:
      x
   1. +-testthat::expect_equal(as.character(2 * B - sqrt(B)), "Matrix([[-sqrt(x) + 2*x, -sqrt(2)*sqrt(x) + 4*x], [1, 2*x - sqrt(x + 2) + 4], [1, 1]])") at test-as_sym.R:25:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-caracas:::Ops.caracas_symbol(2, B)
   5.   \-get_sympy()$matrix_multiply_elementwise(o1, o2)
   6.     \-reticulate:::py_call_impl(callable, dots$args, dots$keywords)
  -- Error (test-as_sym.R:57:3): multiplication ----------------------------------
  <Rcpp::exception/C++Error/error/condition>
  Error in `py_call_impl(callable, dots$args, dots$keywords)`: AssertionError: 
  
  Detailed traceback:
    File "/usr/lib/python3/dist-packages/sympy/matrices/dense.py", line 619, in matrix_multiply_elementwise
      return A.multiply_elementwise(B)
    File "/usr/lib/python3/dist-packages/sympy/matrices/common.py", line 2832, in multiply_elementwise
      return self._eval_matrix_mul_elementwise(other)
    File "/usr/lib/python3/dist-packages/sympy/matrices/repmatrix.py", line 239, in _eval_matrix_mul_elementwise
      rep = self._rep.mul_elementwise(other._rep)
    File "/usr/lib/python3/dist-packages/sympy/polys/matrices/domainmatrix.py", line 980, in mul_elementwise
      assert A.domain == B.domain
  
  Backtrace:
      x
   1. +-testthat::expect_equal(as.character(3 * B), "Matrix([[3*x, 6*x], [3, 3*x + 6], [3, 3]])") at test-as_sym.R:57:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-caracas:::Ops.caracas_symbol(3, B)
   5.   \-get_sympy()$matrix_multiply_elementwise(o1, o2)
   6.     \-reticulate:::py_call_impl(callable, dots$args, dots$keywords)
  -- Error (test-linalg.R:10:3): Math --------------------------------------------
  <Rcpp::exception/C++Error/error/condition>
  Error in `py_call_impl(callable, dots$args, dots$keywords)`: AssertionError: 
  
  Detailed traceback:
    File "/usr/lib/python3/dist-packages/sympy/matrices/dense.py", line 619, in matrix_multiply_elementwise
      return A.multiply_elementwise(B)
    File "/usr/lib/python3/dist-packages/sympy/matrices/common.py", line 2832, in multiply_elementwise
      return self._eval_matrix_mul_elementwise(other)
    File "/usr/lib/python3/dist-packages/sympy/matrices/repmatrix.py", line 239, in _eval_matrix_mul_elementwise
      rep = self._rep.mul_elementwise(other._rep)
    File "/usr/lib/python3/dist-packages/sympy/polys/matrices/domainmatrix.py", line 980, in mul_elementwise
      assert A.domain == B.domain
  
  Backtrace:
      x
   1. +-testthat::expect_equal(as.character(2 * B), "Matrix([[2*a, 0, 2*a], [0, 2*a, 0], [0, 2*a, 0]])") at test-linalg.R:10:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-caracas:::Ops.caracas_symbol(2, B)
   5.   \-get_sympy()$matrix_multiply_elementwise(o1, o2)
   6.     \-reticulate:::py_call_impl(callable, dots$args, dots$keywords)
  -- Failure (test-output.R:170:3): custom printer: exp --------------------------
  `o1` not equal to "[caracas]:            n               <U+239B>    1<U+239E>            lim <U+239C>1 + <U+2500><U+239F>            n<U+2500><U+2192><U+221E><U+239D>    n<U+23A0>".
  1/1 mismatches
  x[1]: "[caracas]:            n               <U+239B>    1<U+239E>            li
  x[1]: m <U+239C>1 + <U+2500><U+239F>            n<U+2500><U+2192><U+221E><U+239D
  x[1]: >    n<U+23A0>"
  y[1]: "[caracas]:            n               <U+239B>    1<U+239E>            lim <U+239C>1 + <U+2500><U+239F>     
  y[1]:        n<U+2500><U+2192><U+221E><U+239D>    n<U+23A0>"
  -- Error (test-symbol.R:56:3): subs_vec ----------------------------------------
  <Rcpp::exception/C++Error/error/condition>
  Error in `py_call_impl(callable, dots$args, dots$keywords)`: AssertionError: 
  
  Detailed traceback:
    File "/usr/lib/python3/dist-packages/sympy/matrices/dense.py", line 619, in matrix_multiply_elementwise
      return A.multiply_elementwise(B)
    File "/usr/lib/python3/dist-packages/sympy/matrices/common.py", line 2832, in multiply_elementwise
      return self._eval_matrix_mul_elementwise(other)
    File "/usr/lib/python3/dist-packages/sympy/matrices/repmatrix.py", line 239, in _eval_matrix_mul_elementwise
      rep = self._rep.mul_elementwise(other._rep)
    File "/usr/lib/python3/dist-packages/sympy/polys/matrices/domainmatrix.py", line 980, in mul_elementwise
      assert A.domain == B.domain
  
  Backtrace:
      x
   1. \-caracas:::Ops.caracas_symbol(2, x^2) at test-symbol.R:56:2
   2.   \-get_sympy()$matrix_multiply_elementwise(o1, o2)
   3.     \-reticulate:::py_call_impl(callable, dots$args, dots$keywords)
  -- Error (test-vector.R:40:3): cbind/rbind -------------------------------------
  <Rcpp::exception/C++Error/error/condition>
  Error in `py_call_impl(callable, dots$args, dots$keywords)`: AssertionError: 
  
  Detailed traceback:
    File "/usr/lib/python3/dist-packages/sympy/matrices/dense.py", line 619, in matrix_multiply_elementwise
      return A.multiply_elementwise(B)
    File "/usr/lib/python3/dist-packages/sympy/matrices/common.py", line 2832, in multiply_elementwise
      return self._eval_matrix_mul_elementwise(other)
    File "/usr/lib/python3/dist-packages/sympy/matrices/repmatrix.py", line 239, in _eval_matrix_mul_elementwise
      rep = self._rep.mul_elementwise(other._rep)
    File "/usr/lib/python3/dist-packages/sympy/polys/matrices/domainmatrix.py", line 980, in mul_elementwise
      assert A.domain == B.domain
  
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-vector.R:40:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-base::cbind(b, 2 * b, b - 1)
   5. | \-caracas cbind(deparse.level, ...)
   6. \-caracas:::Ops.caracas_symbol(2, b)
   7.   \-get_sympy()$matrix_multiply_elementwise(o1, o2)
   8.     \-reticulate:::py_call_impl(callable, dots$args, dots$keywords)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 299 ]
  Error: Test failures
  Execution halted