Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dagitty)
  > 
  > test_check("dagitty")
  ── 1. Error: CGs (@testAdjustments.R#15)  ──────────────────────────────────────
  <string conversion failed>
  Backtrace:
    1. testthat::expect_equal(...)
   11. dagitty::backDoorGraph("pdag{ {i j} -> x -> {a -- b -- c -- a } a -> z b -> y x[e] y[o] }")
   13. dagitty:::as.dagitty.character(x)
   14. dagitty::dagitty(x)
   15. base::tryCatch(...)
   16. base:::tryCatchList(expr, classes, parentenv, handlers)
   17. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   18. value[[3L]](cond)
  
  ── 2. Error: CGs (@testAdjustments.R#15)  ──────────────────────────────────────
  <string conversion failed>
  Backtrace:
    1. testthat::expect_equal(...)
   11. dagitty::backDoorGraph("pdag{ {i j} -> x -> {a -- b -- c -- a } a -> z b -> y x[e] y[o] }")
   13. dagitty:::as.dagitty.character(x)
   14. dagitty::dagitty(x)
   16. dagitty:::.deleteJSVar(xv)
   17. .getJSContext()$eval(paste0("delete global.", x))
   18. V8:::evaluate_js(src, serialize = serialize)
   20. V8:::context_eval(join(src), private$context, serialize)
  
  ── 3. Error: ancestor moral graph (@testBasics.R#30)  ──────────────────────────
  <string conversion failed>
  Backtrace:
    1. testthat::expect_equal(...)
    9. dagitty::ancestorGraph(small1)
   10. dagitty:::.supportsTypes(x, c("dag", "mag", "pdag"))
   11. dagitty::graphType(x)
   12. base::tryCatch(...)
   13. base:::tryCatchList(expr, classes, parentenv, handlers)
   14. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15. value[[3L]](cond)
  
  ── 4. Error: path tracing (@testBasics.R#62)  ──────────────────────────────────
  <string conversion failed>
  Backtrace:
    1. testthat::expect_equal(sort(dseparated(mixed, "d")), c("c", "f"))
    5. dagitty::dseparated(mixed, "d")
    8. dagitty::dconnected(x, X, Y, Z)
    9. dagitty:::.supportsTypes(x, c("dag", "pdag", "mag"))
   10. dagitty::graphType(x)
   11. base::tryCatch(...)
   12. base:::tryCatchList(expr, classes, parentenv, handlers)
   13. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14. value[[3L]](cond)
  
  ── 5. Error: ci tests (@testBasics.R#68)  ──────────────────────────────────────
  <string conversion failed>
  Backtrace:
    1. testthat::expect_equal(...)
    8. dagitty::simulateSEM(coll, N = 500)
    9. dagitty:::.supportsTypes(x, c("dag"))
   10. dagitty::graphType(x)
   11. base::tryCatch(...)
   12. base:::tryCatchList(expr, classes, parentenv, handlers)
   13. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14. value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 36 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: CGs (@testAdjustments.R#15) 
  2. Error: CGs (@testAdjustments.R#15) 
  3. Error: ancestor moral graph (@testBasics.R#30) 
  4. Error: path tracing (@testBasics.R#62) 
  5. Error: ci tests (@testBasics.R#68) 
  
  Error: testthat unit tests failed
  Execution halted