Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dagitty)
  > 
  > test_check("dagitty")
  
  
  #
  # Fatal error in , line 0
  # Failed to create ICU collator, are ICU data files missing?
  #
  #
  #
  #FailureMessage Object: 0x7ffccb116070
  ==== C stack trace ===============================
  
      /lib64/libnode.so.64(v8::base::debug::StackTrace::StackTrace()+0x1a) [0x7fb5b32f161a]
      /lib64/libnode.so.64(+0x92f2a1) [0x7fb5b28792a1]
      /lib64/libnode.so.64(V8_Fatal(char const*, int, char const*, ...)+0x177) [0x7fb5b32ed117]
      /lib64/libnode.so.64(v8::internal::Collator::InitializeCollator(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::JSObject>)+0x473) [0x7fb5b2fcd693]
      /lib64/libnode.so.64(v8::internal::Runtime_CreateCollator(int, v8::internal::Object**, v8::internal::Isolate*)+0x192) [0x7fb5b30f2632]
      [0x34126f5c0d8]
  
   *** caught illegal operation ***
  address 0x7fb5b26b6b7d, cause 'illegal operand'
  
  Traceback:
   1: context_eval(join(src), private$context, serialize)
   2: get_str_output(context_eval(join(src), private$context, serialize))
   3: evaluate_js(src, serialize = serialize)
   4: ct$eval(paste("global.", name, "=", value))
   5: .jsassign(xv, .jsp("GraphParser.parseGuess(global.", xv, ").toString()"))
   6: doTryCatch(return(expr), name, parentenv, handler)
   7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8: tryCatchList(expr, classes, parentenv, handlers)
   9: tryCatch({    .jsassign(xv, as.character(x))    .jsassign(xv, .jsp("GraphParser.parseGuess(global.", xv,         ").toString()"))    r <- structure(.jsget(xv), class = "dagitty")}, error = function(e) {    stop(e)}, finally = {    .deleteJSVar(xv)})
  10: dagitty(x)
  11: as.dagitty.character(x)
  12: as.dagitty(x)
  13: backDoorGraph("pdag{ {i j} -> x -> {a -- b -- c -- a } a -> z b -> y x[e] y[o] }")
  14: is(value, "JS_EVAL")
  15: .jsassign(xv, as.character(x))
  16: .jsassigngraph(xv, x)
  17: tryCatchList(expr, classes, parentenv, handlers)
  18: tryCatch({    .jsassigngraph(xv, x)    for (w in v) {        .jsassign(vv, as.character(w))        .jsassign(vv, .jsp("global.", xv, ".getVertex(global.",             vv, ")"))        .jsassign(vv, .jsp("global.", xv, ".", type, "Of([global.",             vv, "])"))        r <- union(r, .jsget(paste0("_.pluck(global.", vv, ",'id')")))    }}, finally = {    .deleteJSVar(xv)    .deleteJSVar(vv)})
  19: .kins(x, v, "children")
  20: children(backDoorGraph("pdag{ {i j} -> x -> {a -- b -- c -- a } a -> z b -> y x[e] y[o] }"),     "x")
  21: eval_bare(expr, quo_get_env(quo))
  22: quasi_label(enquo(object), label, arg = "object")
  23: expect_equal(length(children(backDoorGraph("pdag{ {i j} -> x -> {a -- b -- c -- a } a -> z b -> y x[e] y[o] }"),     "x")), 0)
  24: eval(code, test_env)
  25: eval(code, test_env)
  26: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  27: doTryCatch(return(expr), name, parentenv, handler)
  28: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  29: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  30: doTryCatch(return(expr), name, parentenv, handler)
  31: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  32: tryCatchList(expr, classes, parentenv, handlers)
  33: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  34: test_code(desc, code, env = parent.frame())
  35: test_that("CGs", {    expect_equal(length(children(backDoorGraph("pdag{ {i j} -> x -> {a -- b -- c -- a } a -> z b -> y x[e] y[o] }"),         "x")), 0)})
  36: eval(code, test_env)
  37: eval(code, test_env)
  38: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  39: doTryCatch(return(expr), name, parentenv, handler)
  40: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  41: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  42: doTryCatch(return(expr), name, parentenv, handler)
  43: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  44: tryCatchList(expr, classes, parentenv, handlers)
  45: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  46: test_code(NULL, exprs, env)
  47: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  48: force(code)
  49: doWithOneRestart(return(expr), restart)
  50: withOneRestart(expr, restarts[[1L]])
  51: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  52: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  53: FUN(X[[i]], ...)
  54: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  55: force(code)
  56: doWithOneRestart(return(expr), restart)
  57: withOneRestart(expr, restarts[[1L]])
  58: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  59: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  60: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  61: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  62: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  63: test_check("dagitty")
  An irrecoverable exception occurred. R is aborting now ...