Running ‘testthat.R’ [3s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("pixiedust")
  Additional documentation is being constructed at http://nutterb.github.io/pixiedust/index.html
  > 
  > test_check("pixiedust")
  ── 1. Error: (unknown) (@test-colors.R#3)  ─────────────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: dust(lm(mpg ~ qsec + factor(am) + wt + factor(gear), data = mtcars)) at testthat/test-colors.R:3
  2: dust.default(lm(mpg ~ qsec + factor(am) + wt + factor(gear), data = mtcars))
  3: checkmate::matchArg(x = descriptors, choices = c("term", "term_plain", "label", "level", 
         "level_detail"), several.ok = TRUE, add = coll)
  4: assertSubset(x, choices, empty.ok = FALSE, .var.name = .var.name, add = add)
  5: checkSubset(x, choices, empty.ok, fmatch)
  6: qassert(empty.ok, "B1")
  
  ── 2. Error: Create a dust object (@test-dust.R#7)  ────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: dust(fit) at testthat/test-dust.R:7
  2: dust.default(fit)
  3: checkmate::matchArg(x = descriptors, choices = c("term", "term_plain", "label", "level", 
         "level_detail"), several.ok = TRUE, add = coll)
  4: assertSubset(x, choices, empty.ok = FALSE, .var.name = .var.name, add = add)
  5: checkSubset(x, choices, empty.ok, fmatch)
  6: qassert(empty.ok, "B1")
  
  ── 3. Error: dust object has expected names (@test-dust.R#14)  ─────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: dust(fit) at testthat/test-dust.R:14
  2: dust.default(fit)
  3: checkmate::matchArg(x = descriptors, choices = c("term", "term_plain", "label", "level", 
         "level_detail"), several.ok = TRUE, add = coll)
  4: assertSubset(x, choices, empty.ok = FALSE, .var.name = .var.name, add = add)
  5: checkSubset(x, choices, empty.ok, fmatch)
  6: qassert(empty.ok, "B1")
  
  
   *** caught segfault ***
  address 39, cause 'memory not mapped'
  
  Traceback:
   1: qassert(empty.ok, "B1")
   2: checkSubset(x, choices, empty.ok, fmatch)
   3: assertSubset(x, choices, empty.ok = FALSE, .var.name = .var.name,     add = add)
   4: checkmate::matchArg(x = descriptors, choices = c("term", "term_plain",     "label", "level", "level_detail"), several.ok = TRUE, add = coll)
   5: dust.default(fit)
   6: dust(fit)
   7: eval(code, test_env)
   8: eval(code, test_env)
   9: 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)
  10: doTryCatch(return(expr), name, parentenv, handler)
  11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  13: doTryCatch(return(expr), name, parentenv, handler)
  14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  15: tryCatchList(expr, classes, parentenv, handlers)
  16: 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) {    })
  17: test_code(desc, code, env = parent.frame())
  18: test_that("dust object body component has correct dimensions",     {        fit <- lm(mpg ~ qsec + factor(am) + wt + factor(gear),             data = mtcars)        x <- dust(fit)        Dims <- list(dim(x$head), dim(x$body), dim(x$interfoot),             dim(x$foot))        expect_equal(Dims, list(c(5, 37), c(30, 37), NULL, NULL))    })
  19: eval(code, test_env)
  20: eval(code, test_env)
  21: 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)
  22: doTryCatch(return(expr), name, parentenv, handler)
  23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  25: doTryCatch(return(expr), name, parentenv, handler)
  26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  27: tryCatchList(expr, classes, parentenv, handlers)
  28: 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) {    })
  29: test_code(NULL, exprs, env)
  30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  31: force(code)
  32: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  33: FUN(X[[i]], ...)
  34: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  35: force(code)
  36: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  37: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  38: 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)
  39: 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)
  40: test_check("pixiedust")
  An irrecoverable exception occurred. R is aborting now ...