Running ‘tests.R’ [5s/19s]
Running the tests in ‘tests/tests.R’ failed.
Complete output:
  > library(ldat)
  Loading required package: lvec
  
  Attaching package: 'lvec'
  
  The following object is masked from 'package:base':
  
      order
  
  Loading required package: Rcpp
  
  Attaching package: 'ldat'
  
  The following objects are masked from 'package:base':
  
      append, match, table, which
  
  > library(testthat)
  > 
  > test_check("ldat")
  
   *** caught bus error ***
  address f7ca0000, cause 'object specific hardware error'
  
  Traceback:
   1: as_lvec(x[[i]])
   2: (function (...) {    x <- list(...)    n <- length(x)    if (n < 1L) {        return(NULL)    }    vnames <- names(x)    if (length(vnames) != n)         vnames <- character(n)    object <- as.list(substitute(list(...)))[-1L]    vnames_deparse <- sapply(object, function(o) deparse(o)[1L])    vnames <- ifelse(nzchar(vnames), vnames, vnames_deparse)    noname <- !nzchar(vnames)    if (any(noname))         vnames[noname] <- paste("Var", seq_along(vnames), sep = ".")[noname]    vnames <- make.names(vnames, unique = TRUE)    len <- NULL    for (i in seq_len(n)) {        xi <- as_lvec(x[[i]])        if (is.null(len))             len <- length(xi)        if (length(xi) != len) {            stop("Column '", vnames[i], "' does not have the same length as",                 " previous columns.")        }        x[[i]] <- xi    }    names(x) <- vnames    attr(x, "class") <- "ldat"    x})(x = 1:20, y = 1:20)
   3: do.call(ldat, x)
   4: as_ldat.data.frame(x_r)
   5: as_ldat(x_r)
   6: eval(code, test_env)
   7: eval(code, test_env)
   8: 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)
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  14: tryCatchList(expr, classes, parentenv, handlers)
  15: 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) {    })
  16: test_code(desc, code, env = parent.frame())
  17: test_that("lset.dat works", {    x_r <- data.frame(x = 1:20, y = letters[1:20], stringsAsFactors = FALSE)    x <- as_ldat(x_r)    lset(x, index = 1:2, data.frame(x = 11:12, y = c("q", "r"),         stringsAsFactors = FALSE))    x_r[1:2, ] <- data.frame(x = 11:12, y = c("q", "r"), stringsAsFactors = FALSE)    expect_equivalent(as.data.frame(x), x_r)    lset(x, range = 1:2, values = data.frame(x = 11:12, y = c("q",         "r"), stringsAsFactors = FALSE))    x_r[1:2, ] <- data.frame(x = 11:12, y = c("q", "r"), stringsAsFactors = FALSE)    expect_equivalent(as.data.frame(x), x_r)    x_r <- data.frame(x = 1:20, y = 1:20, stringsAsFactors = FALSE)    x <- as_ldat(x_r)    lset(x, index = 1:2, 11:12)    x_r[1:2, ] <- 11:12    expect_equivalent(as.data.frame(x), x_r)    lset(x, range = 1:2, values = 11:12)    x_r[1:2, ] <- 11:12    expect_equivalent(as.data.frame(x), x_r)})
  18: eval(code, test_env)
  19: eval(code, test_env)
  20: 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)
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  23: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  24: doTryCatch(return(expr), name, parentenv, handler)
  25: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  26: tryCatchList(expr, classes, parentenv, handlers)
  27: 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) {    })
  28: test_code(NULL, exprs, env)
  29: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  30: force(code)
  31: doWithOneRestart(return(expr), restart)
  32: withOneRestart(expr, restarts[[1L]])
  33: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  34: 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()    })
  35: FUN(X[[i]], ...)
  36: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  37: force(code)
  38: doWithOneRestart(return(expr), restart)
  39: withOneRestart(expr, restarts[[1L]])
  40: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  41: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  42: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  43: 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)
  44: 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)
  45: test_check("ldat")
  An irrecoverable exception occurred. R is aborting now ...