Running ‘testthat.R’ [10s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mxmmod)
  > 
  > test_check("mxmmod")
  Error: C stack usage  271357076 is too close to the limit
  
   *** caught segfault ***
  address 4ff694e0, cause 'memory not mapped'
  
  Traceback:
   1: runHelper(model, frontendStart, intervals, silent, suppressWarnings,     unsafe, checkpoint, useSocket, onlyFrontend, useOptimizer,     beginMessage)
   2: mxRun(mmod_model)
   3: summary(mxRun(mmod_model))
   4: mxmmod_ref(scaled_nlsy)
   5: eval(code, test_env)
   6: eval(code, test_env)
   7: 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)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  13: tryCatchList(expr, classes, parentenv, handlers)
  14: 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) {    })
  15: test_code(desc, code, env = parent.frame(), reporter = reporter)
  16: test_that("Floating point occasions", {    df <- nlsy97_1983_cohort()    scale_val <- 2    scaled_nlsy <- df    scaled_nlsy$occasion <- scaled_nlsy$occasion/scale_val    trans <- rep(1, 33)    trans[6:10] <- scale_val    trans[11:15] <- scale_val^2    trans[24:33] <- scale_val^2    trans[29:33] <- scale_val^4    a <- mxmmod_ref(scaled_nlsy)    b <- estabrook_ref(df)    a$parameters$Estimate <- a$parameters$Estimate/trans    a$parameters$Std.Error <- a$parameters$Std.Error/trans    expect_equal(a$parameters$Estimate, b$parameters$Estimate,         tolerance = 0.001)    expect_equal(a$parameters$Std.Error, b$parameters$Std.Error,         tolerance = 0.001)})
  17: eval(code, test_env)
  18: eval(code, test_env)
  19: 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)
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  25: tryCatchList(expr, classes, parentenv, handlers)
  26: 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) {    })
  27: test_code(NULL, exprs, env)
  28: source_file(path, child_env(env), wrap = wrap)
  29: FUN(X[[i]], ...)
  30: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  31: force(code)
  32: doWithOneRestart(return(expr), restart)
  33: withOneRestart(expr, restarts[[1L]])
  34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  35: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  36: 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)
  37: 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)
  38: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  39: test_check("mxmmod")
  An irrecoverable exception occurred. R is aborting now ...