Running ‘tests.R’ [4s/17s]
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(index)
   2: lset.lvec(x, index = i, values = value)
   3: lset(x, index = i, values = value)
   4: `[<-.lvec`(`*tmp*`, 4, value = 99)
   5: `[<-`(`*tmp*`, 4, value = 99)
   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("indexing works", {    x <- as_lvec(1:10)    x_r <- as_rvec(x)    x[4] <- 99    x_r[4] <- 99    expect_that(as_rvec(x), equals(x_r))    expect_that(as_rvec(x[c(3, 4)]), equals(x_r[c(3, 4)]))    expect_that(as_rvec(x[TRUE]), equals(x_r[TRUE]))    x[1:4] <- 109    x_r[1:4] <- 109    expect_that(as_rvec(x), equals(x_r))    expect_that(as_rvec(x[4]), equals(x_r[4]))    expect_that(as_rvec(x[NA]), equals(x_r[NA]))    x[range = c(3, 6)] <- 299    x_r[3:6] <- 299    expect_that(as_rvec(x), equals(x_r))    expect_that(as_rvec(x[range = c(2, 3)]), equals(x_r[c(2,         3)]))})
  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 ...