Running ‘testthat.R’ [7s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(yaps)
  Welcome to yaps (v1.2.5)
   Please let us know if you experience any trouble using yaps. 
   Run testYaps() to ensure basic functions (incl. TMB) is working.
  > 
  > test_check("yaps")
  2021-09-04 23:30:00 
  . Running optimization of the sync model. Please be patient - this can take a long time. 
  
   *** caught segfault ***
  address (nil), cause 'memory not mapped'
  
  Traceback:
   1: retape(set.defaults = TRUE)
   2: TMB::MakeADFun(data = dat_tmb, parameters = params, random = random,     DLL = "yaps", inner.control = list(maxit = max_iter), silent = silent)
   3: getSyncModel(inp_sync, silent = TRUE, max_iter = 500, tmb_smartsearch = TRUE)
   4: eval(code, test_env)
   5: eval(code, test_env)
   6: 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)
   7: doTryCatch(return(expr), name, parentenv, handler)
   8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  10: doTryCatch(return(expr), name, parentenv, handler)
  11: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  12: tryCatchList(expr, classes, parentenv, handlers)
  13: 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) {    })
  14: test_code(NULL, exprs, env)
  15: source_file(path, child_env(env), wrap = wrap)
  16: FUN(X[[i]], ...)
  17: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  18: force(code)
  19: doWithOneRestart(return(expr), restart)
  20: withOneRestart(expr, restarts[[1L]])
  21: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  22: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  23: 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)
  24: 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)
  25: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  26: test_check("yaps")
  An irrecoverable exception occurred. R is aborting now ...