Running ‘test-all.R’ [1s/2s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat,quietly=TRUE)
  > 
  > test_check("growcurves")
  Loading required package: growcurves
  Loading required package: Rcpp
  [1] "Your chosen set of treatment base distributions  = car"
  
   *** caught segfault ***
  address 0xf, cause 'memory not mapped'
  
  Traceback:
   1: ddpPost(y, X, Z, subject, dosemat, numt, typet, Omega, omega.plus,     n.iter, n.burn, n.thin, shape.dp, rate.dp, M.init)
   2: ddpgrow.default(y = datsimmult$y, subject = datsimmult$subject,     trt = datsimmult$trt, time = datsimmult$time, n.random = datsimmult$n.random,     n.fix_degree = 2, dosemat = datsimmult$dosemat_test, Omega = datsimmult$Omega_test,     numdose = datsimmult$numdose_test, labt = datsimmult$labt_test,     typetreat = typetreat, n.iter = niter, n.burn = nburn, n.thin = nthin,     shape.dp = 1, rate.dp = 1, M.init = length(unique(datsimmult$subject)),     plot.out = TRUE)
   3: ddpgrow(y = datsimmult$y, subject = datsimmult$subject, trt = datsimmult$trt,     time = datsimmult$time, n.random = datsimmult$n.random, n.fix_degree = 2,     dosemat = datsimmult$dosemat_test, Omega = datsimmult$Omega_test,     numdose = datsimmult$numdose_test, labt = datsimmult$labt_test,     typetreat = typetreat, n.iter = niter, n.burn = nburn, n.thin = nthin,     shape.dp = 1, rate.dp = 1, M.init = length(unique(datsimmult$subject)),     plot.out = TRUE)
   4: mod(niter, nburn, nthin, typetreat)
   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("ddp function returns correct objects under car prior construction",     {        niter <- 30        nburn <- 10        nthin <- 2        typetreat <- c("car")        DDP <- mod(niter, nburn, nthin, typetreat)        srm <- summary(DDP)$summary.results        parms <- samples(DDP)        pr <- DDP$plot.results        num.subj <- length(unique(datsimmult$subject))        nrandom <- ncol(srm$Z)        expect_that(DDP, is_a("ddpgrow"))        expect_that(srm$theta.summary, is_a("list"))        expect_that(names(srm)[17], matches("lpml"))        expect_that(ncol(srm$X), equals(5))        expect_that(colnames(srm$X), matches("time"))        expect_that(nrow(parms$M), is_equivalent_to((niter -             nburn)/nthin))        expect_that(ncol(parms$Theta), is_equivalent_to(num.subj *             nrandom))        expect_that(length(residuals(DDP)), equals(length(datsimmult$y)))        expect_that(nrow(srm$taucar.summary), equals(1))        expect_that("p.tcar" %in% names(pr), is_true())        psupp <- ddpEffectsplot(DDP)        expect_that(length(psupp), equals(4))    })
  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("growcurves")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault