Running ‘testthat.R’ [22s/156s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(multimark)
  > 
  > test_check("multimark")
  Chain 1 initialized 
  
  Chain 1 is 10% complete
  Chain 1 is 20% complete
  Chain 1 is 30% complete
  Chain 1 is 40% complete
  Chain 1 is 50% complete
  Chain 1 is 60% complete
  Chain 1 is 70% complete
  Chain 1 is 80% complete
  Chain 1 is 90% complete
  Chain 1 is 100% complete
  Chain 1 initialized 
  
   *** caught segfault ***
  address (nil), cause 'memory not mapped'
  
  Traceback:
   1: mcmcCJS(nchains, mms, DM, params, inits, iter, adapt, bin, thin,     burnin, taccept, tuneadjust, Prop.sdp, Prop.sdphi, maxnumbasis,     pbeta0, pprec0, phibeta0, phiprec0, l0p, d0p, l0phi, d0phi,     a0delta, a0alpha, b0alpha, a0psi, b0psi, link, printlog)
   2: multimarkCJS(mms = mms, mod.p = mod.p, mod.phi = mod.phi, mod.delta = ~NULL,     parms = parms, nchains = nchains, iter = iter, adapt = adapt,     bin = bin, thin = thin, burnin = burnin, taccept = taccept,     tuneadjust = tuneadjust, proppbeta = proppbeta, propzp = propzp,     propsigmap = propsigmap, propphibeta = propphibeta, propzphi = propzphi,     propsigmaphi = propsigmaphi, pbeta0 = pbeta0, pSigma0 = pSigma0,     phibeta0 = phibeta0, phiSigma0 = phiSigma0, l0p = l0p, d0p = d0p,     l0phi = l0phi, d0phi = d0phi, initial.values = initial.values,     link = link, printlog = printlog, ...)
   3: markCJS(data, mod.phi = ~age, iter = 10, burnin = 0, parameters = list(Phi = list(age.bins = c(0,     1, 4))), right = FALSE)
   4: eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   5: withCallingHandlers({    code    NULL}, error = function(cnd) {    if (can_entrace(cnd)) {        cnd <- cnd_entrace(cnd)    }    return_from(env, cnd)})
   6: .capture(act$val <- eval_bare(quo_get_expr(.quo), quo_get_env(.quo)),     ...)
   7: quasi_capture(enquo(object), label, capture_error, entrace = TRUE)
   8: expect_error(markCJS(data, mod.phi = ~age, iter = 10, burnin = 0,     parameters = list(Phi = list(age.bins = c(0, 1, 4))), right = FALSE),     NA)
   9: eval(code, test_env)
  10: eval(code, test_env)
  11: 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)
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  14: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  15: doTryCatch(return(expr), name, parentenv, handler)
  16: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  17: tryCatchList(expr, classes, parentenv, handlers)
  18: 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) {    })
  19: test_code(desc, code, env = parent.frame(), reporter = reporter)
  20: test_that("markCJS", {    data <- simdataCJS(delta_1 = 1, delta_2 = 0)$Enc.Mat    expect_error(markCJS(data, iter = 10, burnin = 0), NA)    expect_error(markCJS(data, mod.phi = ~age, iter = 10, burnin = 0,         parameters = list(Phi = list(age.bins = c(0, 1, 4))),         right = FALSE), NA)})
  21: eval(code, test_env)
  22: eval(code, test_env)
  23: 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)
  24: doTryCatch(return(expr), name, parentenv, handler)
  25: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  26: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  27: doTryCatch(return(expr), name, parentenv, handler)
  28: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  29: tryCatchList(expr, classes, parentenv, handlers)
  30: 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) {    })
  31: test_code(NULL, exprs, env)
  32: source_file(path, child_env(env), wrap = wrap)
  33: FUN(X[[i]], ...)
  34: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  35: doTryCatch(return(expr), name, parentenv, handler)
  36: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  37: tryCatchList(expr, classes, parentenv, handlers)
  38: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  39: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  40: test_files(test_dir = test_dir, test_package = test_package,     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package)
  41: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package, parallel = parallel)
  42: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  43: test_check("multimark")
  An irrecoverable exception occurred. R is aborting now ...