Running ‘test-all.R’ [9s/10s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat,quietly=TRUE)
  > 
  > 
  > test_check("growfunctions")
  Loading required package: growfunctions
  Loading required package: Rcpp
  Production Interation: 0
  Your additive set of iGMRF precision terms includes type = tr and order = 2
  Production Interation: 0
  Your additive set of iGMRF precision terms includes type = tr and order = 2
  Production Interation: 0
  Your additive set of iGMRF precision terms includes type = tr and order = 2
  Production Interation: 0
  Your additive set of iGMRF precision terms includes type = tr and order = 2
   Your additive set of iGMRF precision terms includes type = sn and order = 3
  Your chosen GP covariance terms includes term = rq
  
   *** caught segfault ***
  address 0x1, cause 'memory not mapped'
  
  Traceback:
   1: gpdpbPost(y, ipr, Omega_t, Omega_s, gp_mod, jitter, b_move, gp_shape,     gp_rate, noise_shape, noise_rate, lower, upper, w_star, w,     n_slice_iter, y_index, n.iter, n.burn, n.thin, n.tune, M_init,     dp_shape, dp_rate, progress)
   2: gpdpgrow.default(y = y, jitter = 0.001, gp_cov = gp_cov, sn_order = sn_order,     n.iter = niter, n.burn = nburn, n.thin = nthin, progress = FALSE,     n.tune = 0)
   3: gpdpgrow(y = y, jitter = 0.001, gp_cov = gp_cov, sn_order = sn_order,     n.iter = niter, n.burn = nburn, n.thin = nthin, progress = FALSE,     n.tune = 0)
   4: mod(y = y_obs, gp_cov = "rq", niter = niter, nburn = nburn, nthin = nthin)
   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())
  16: test_that("gpdpgrow() with some missing data and one covariance term returns correct objects",     {        m_factor = 0.1        M = floor(m_factor * N * T)        m_vec = rep(floor(M/N), N)        if (sum(m_vec) < M) {            m_left <- M - sum(m_vec)            pos_i <- sample(1:N, m_left, replace = FALSE)            m_vec[pos_i] <- m_vec[pos_i] + 1        }        pos <- matrix(0, N, T)        for (i in 1:N) {            sel_ij <- sample(3:(T - 3), m_vec[i], replace = FALSE)            pos[i, sel_ij] <- 1        }        y_obs <- y_short        y_obs[pos == 1] <- NA        P <- 3        niter <- 5        nburn <- 1        nthin <- 1        GPDP_m <- mod(y = y_obs, gp_cov = "rq", niter = niter,             nburn = nburn, nthin = nthin)        expect_that(GPDP_m, is_a("gpdpgrow"))        expect_that(ncol(GPDP_m$bb), equals(N * T))        expect_that(ncol(GPDP_m$Theta), equals(N * P))    })
  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, new.env(parent = env), chdir = TRUE, wrap = wrap)
  29: force(code)
  30: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  31: FUN(X[[i]], ...)
  32: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  33: force(code)
  34: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  35: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  36: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  37: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  38: test_check("growfunctions")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault