Running ‘testthat.R’ [10s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(foieGras)
  > 
  > test_check("foieGras")
  
   *** caught segfault ***
  address (nil), cause 'memory not mapped'
  
  Traceback:
   1: retape(set.defaults = TRUE)
   2: MakeADFun(data, parameters, map = map, random = rnd, hessian = TRUE,     method = control$method, DLL = "foieGras", silent = !ifelse(control$verbose ==         2, TRUE, FALSE), inner.control = inner.control)
   3: sfilter(x = .x, model = model, time.step = time.step, parameters = parameters,     map = map, fit.to.subset = fit.to.subset, control = control,     inner.control = inner.control)
   4: .f(.x[[i]], ...)
   5: map(., ~sfilter(x = .x, model = model, time.step = time.step,     parameters = parameters, map = map, fit.to.subset = fit.to.subset,     control = control, inner.control = inner.control))
   6: fit %>% map(~sfilter(x = .x, model = model, time.step = time.step,     parameters = parameters, map = map, fit.to.subset = fit.to.subset,     control = control, inner.control = inner.control))
   7: fit_ssm(ellie, vmax = 5, model = "rw", time.step = 48, control = ssm_control(optim = "nlminb",     verbose = 0), emf = emf(emf.x = c(1, 1, 1, 1, 1, 10), emf.y = c(1,     1, 1, 1, 1, 10)))
   8: eval(code, test_env)
   9: eval(code, test_env)
  10: 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)
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  13: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  14: doTryCatch(return(expr), name, parentenv, handler)
  15: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  16: tryCatchList(expr, classes, parentenv, handlers)
  17: 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) {    })
  18: test_code(desc, code, env = parent.frame(), reporter = reporter)
  19: test_that("p has s3 classes `fG_ssmp`, `sf`, `data.frame`", {    f <- fit_ssm(ellie, vmax = 5, model = "rw", time.step = 48,         control = ssm_control(optim = "nlminb", verbose = 0),         emf = emf(emf.x = c(1, 1, 1, 1, 1, 10), emf.y = c(1,             1, 1, 1, 1, 10)))    expect_s3_class(f$ssm[[1]], "ssm")    expect_equal(length(f$ssm[[1]]), 15)    expect_s3_class(f, "fG_ssm")})
  20: eval(code, test_env)
  21: eval(code, test_env)
  22: 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)
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  25: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  26: doTryCatch(return(expr), name, parentenv, handler)
  27: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  28: tryCatchList(expr, classes, parentenv, handlers)
  29: 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) {    })
  30: test_code(NULL, exprs, env)
  31: source_file(path, child_env(env), wrap = wrap)
  32: FUN(X[[i]], ...)
  33: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  34: force(code)
  35: doWithOneRestart(return(expr), restart)
  36: withOneRestart(expr, restarts[[1L]])
  37: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  38: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  39: 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)
  40: 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)
  41: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  42: test_check("foieGras")
  An irrecoverable exception occurred. R is aborting now ...