Running ‘testthat.R’ [5s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bellreg)
  
  Attaching package: 'bellreg'
  
  The following object is masked from 'package:stats':
  
      confint
  
  > 
  > test_check("bellreg")
  
  SAMPLING FOR MODEL 'bellreg' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 8.7e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.87 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 1: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 1: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 1: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 1: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 1: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 1: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 1: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 1: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 1: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 1: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 1: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.239218 seconds (Warm-up)
  Chain 1:                0.205693 seconds (Sampling)
  Chain 1:                0.444911 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'bellreg' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 6.6e-05 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0.66 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 2: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 2: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 2: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 2: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 2: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 2: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 2: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 2: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 2: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 2: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 2: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 0.245915 seconds (Warm-up)
  Chain 2:                0.242386 seconds (Sampling)
  Chain 2:                0.488301 seconds (Total)
  Chain 2: 
  
  SAMPLING FOR MODEL 'bellreg' NOW (CHAIN 3).
  Chain 3: 
  Chain 3: Gradient evaluation took 7.4e-05 seconds
  Chain 3: 1000 transitions using 10 leapfrog steps per transition would take 0.74 seconds.
  Chain 3: Adjust your expectations accordingly!
  Chain 3: 
  Chain 3: 
  Chain 3: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 3: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 3: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 3: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 3: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 3: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 3: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 3: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 3: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 3: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 3: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 3: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 3: 
  Chain 3:  Elapsed Time: 0.236334 seconds (Warm-up)
  Chain 3:                0.246444 seconds (Sampling)
  Chain 3:                0.482778 seconds (Total)
  Chain 3: 
  
  SAMPLING FOR MODEL 'bellreg' NOW (CHAIN 4).
  Chain 4: 
  Chain 4: Gradient evaluation took 0.000105 seconds
  Chain 4: 1000 transitions using 10 leapfrog steps per transition would take 1.05 seconds.
  Chain 4: Adjust your expectations accordingly!
  Chain 4: 
  Chain 4: 
  Chain 4: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 4: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 4: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 4: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 4: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 4: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 4: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 4: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 4: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 4: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 4: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 4: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 4: 
  Chain 4:  Elapsed Time: 0.241514 seconds (Warm-up)
  Chain 4:                0.266472 seconds (Sampling)
  Chain 4:                0.507986 seconds (Total)
  Chain 4: 
  
   *** caught segfault ***
  address 0x8, cause 'memory not mapped'
  
  Traceback:
   1: `slot<-`(.Object, slotName, check = FALSE, slotVal)
   2: initialize(value, ...)
   3: initialize(value, ...)
   4: new("stanfit", model_name = object@model_name, model_pars = m_pars,     par_dims = p_dims, mode = 0L, sim = sim, inits = inits_used,     stan_args = args_list, stanmodel = object, date = date(),     .MISC = sfmiscenv)
   5: .local(object, ...)
   6: rstan::sampling(stanmodels$bellreg, data = stan_data, verbose = FALSE,     ...)
   7: rstan::sampling(stanmodels$bellreg, data = stan_data, verbose = FALSE,     ...)
   8: bellreg(nf ~ lroll, data = faults, approach = "bayes")
   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(NULL, exprs, env)
  20: source_file(path, child_env(env), wrap = wrap)
  21: FUN(X[[i]], ...)
  22: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  23: force(code)
  24: doWithOneRestart(return(expr), restart)
  25: withOneRestart(expr, restarts[[1L]])
  26: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  27: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  28: 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)
  29: 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)
  30: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  31: test_check("bellreg")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault