Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(trialr)
  Loading required package: Rcpp
  > 
  > test_check("trialr")
  -- 1. Error: Dose-finding outcomes "1NNN 3NTT" parse correctly (@test_df_parse_o
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes("1NNN 3NTT", as.list = FALSE) at testthat/test_df_parse_outcomes.R:7
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 2. Error: Dose-finding outcomes "1NNN 3NTT" parse correctly to list (@test_df
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes("1NNN 3NTT", as.list = TRUE) at testthat/test_df_parse_outcomes.R:15
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 3. Error: Dose-finding outcomes "1N2T2N2N2N" parse correctly (@test_df_parse_
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes("1N2T2N2N2N", as.list = FALSE) at testthat/test_df_parse_outcomes.R:25
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 4. Error: Dose-finding outcomes "1N2T2N2N2N" parse correctly to list (@test_d
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes("1N2T2N2N2N", as.list = TRUE) at testthat/test_df_parse_outcomes.R:33
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 5. Error: Dose-finding outcomes "1NTT 2T 2NTNNTN 3N" parse correctly (@test_d
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes("1NTT 2T 2NTNNTN 3N", as.list = FALSE) at testthat/test_df_parse_outcomes.R:42
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 6. Error: Dose-finding outcomes "1NTT 2T 2NTNNTN 3N" parse correctly to list 
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes("1NTT 2T 2NTNNTN 3N", as.list = TRUE) at testthat/test_df_parse_outcomes.R:50
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 7. Error: Dose-finding outcomes "96NTT 40T 1NTNNTN 174N" parse correctly (@te
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes("96NTT 40T 1NTNNTN 174N", as.list = FALSE) at testthat/test_df_parse_outcomes.R:59
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 8. Error: Dose-finding outcomes "96NTT 40T 1NTNNTN 174N" parse correctly to l
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes("96NTT 40T 1NTNNTN 174N", as.list = TRUE) at testthat/test_df_parse_outcomes.R:67
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 9. Error: Dose-finding outcomes " 1NTT 2T 2NTNNTN 2N" parse correctly (@test_
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes(" 1NTT 2T 2NTNNTN 2N", as.list = FALSE) at testthat/test_df_parse_outcomes.R:76
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 10. Error: Dose-finding outcomes " 1NTT 2T 2NTNNTN 2N" parse correctly to lis
  ICU init failed: U_FILE_ACCESS_ERROR
  1: df_parse_outcomes(" 1NTT 2T 2NTNNTN 2N", as.list = TRUE) at testthat/test_df_parse_outcomes.R:84
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 11. Error: EffTox outcomes "1EEE 3TTT" parse correctly (@test_efftox_parse_ou
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes("1EEE 3TTT", as.list = FALSE) at testthat/test_efftox_parse_outcomes.R:7
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 12. Error: EffTox outcomes "1EEE 3TTT" parse correctly to list (@test_efftox_
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes("1EEE 3TTT", as.list = TRUE) at testthat/test_efftox_parse_outcomes.R:16
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 13. Error: EffTox outcomes "1E2T2N2E2E" parse correctly (@test_efftox_parse_o
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes("1E2T2N2E2E", as.list = FALSE) at testthat/test_efftox_parse_outcomes.R:27
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 14. Error: EffTox outcomes "1E2T2N2E2E" parse correctly to list (@test_efftox
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes("1E2T2N2E2E", as.list = TRUE) at testthat/test_efftox_parse_outcomes.R:36
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 15. Error: EffTox outcomes "1ETT 2T 2NBENTE 3E" parse correctly (@test_efftox
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes("1ETT 2T 2NBENTE 3E", as.list = FALSE) at testthat/test_efftox_parse_outcomes.R:46
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 16. Error: EffTox outcomes "1ETT 2T 2NBENTE 3E" parse correctly to list (@tes
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes("1ETT 2T 2NBENTE 3E", as.list = TRUE) at testthat/test_efftox_parse_outcomes.R:55
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 17. Error: EffTox outcomes "96ETT 40T 1NBENTE 174E" parse correctly (@test_ef
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes("96ETT 40T 1NBENTE 174E", as.list = FALSE) at testthat/test_efftox_parse_outcomes.R:65
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 18. Error: EffTox outcomes "96ETT 40T 1NBENTE 174E" parse correctly to list (
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes("96ETT 40T 1NBENTE 174E", as.list = TRUE) at testthat/test_efftox_parse_outcomes.R:74
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 19. Error: EffTox outcomes " 1ETT 2T 2NBENTE 2E" parse correctly (@test_effto
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes(" 1ETT 2T 2NBENTE 2E", as.list = FALSE) at testthat/test_efftox_parse_outcomes.R:84
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 20. Error: EffTox outcomes " 1ETT 2T 2NBENTE 2E" parse correctly to list (@te
  ICU init failed: U_FILE_ACCESS_ERROR
  1: efftox_parse_outcomes(" 1ETT 2T 2NBENTE 2E", as.list = TRUE) at testthat/test_efftox_parse_outcomes.R:93
  2: stringr::str_detect
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 21. Error: stan_crm passes ellipsis variables to rstan::sampling (@test_stan_
  ICU init failed: U_FILE_ACCESS_ERROR
  1: stan_crm(outcome_str = "1NNN 2TNT", skeleton = c(0.1, 0.25, 0.4, 0.6), target = 0.25, 
         model = "empiric", beta_sd = sqrt(1.34), iter = 500, chains = 2, seed = 123) at testthat/test_stan_crm.R:5
  2: df_parse_outcomes(outcome_str, as.list = TRUE)
  3: stringr::str_detect
  4: getExportedValue(pkg, name)
  5: asNamespace(ns)
  6: getNamespace(ns)
  7: tryCatch(loadNamespace(name), error = function(e) stop(e))
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  -- 22. Error: stan_crm output for logistic model matches DFCRM by Cheung (@test_
  ICU init failed: U_FILE_ACCESS_ERROR
  1: stan_crm(outcome_str = "3N 5N 5T 3N 4N", skeleton = skeleton, target = target, model = "logistic", 
         a0 = a0, beta_mean = beta_mean, beta_sd = beta_sd, seed = 123) at testthat/test_stan_crm.R:35
  2: df_parse_outcomes(outcome_str, as.list = TRUE)
  3: stringr::str_detect
  4: getExportedValue(pkg, name)
  5: asNamespace(ns)
  6: getNamespace(ns)
  7: tryCatch(loadNamespace(name), error = function(e) stop(e))
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  -- 23. Error: stan_efftox passes ellipsis variables to rstan::sampling (@test_st
  ICU init failed: U_FILE_ACCESS_ERROR
  1: stan_efftox(outcome_str = "1NNN 2ENN", real_doses = l$real_doses, efficacy_hurdle = l$efficacy_hurdle, 
         toxicity_hurdle = l$toxicity_hurdle, p_e = l$p_e, p_t = l$p_t, eff0 = l$eff0, 
         tox1 = l$tox1, eff_star = l$eff_star, tox_star = l$tox_star, alpha_mean = l$alpha_mean, 
         alpha_sd = l$alpha_sd, beta_mean = l$beta_mean, beta_sd = l$beta_sd, gamma_mean = l$gamma_mean, 
         gamma_sd = l$gamma_sd, zeta_mean = l$zeta_mean, zeta_sd = l$zeta_sd, eta_mean = l$eta_mean, 
         eta_sd = l$eta_sd, psi_mean = l$psi_mean, psi_sd = l$psi_sd, iter = 500, chains = 2, 
         seed = 123) at testthat/test_stan_efftox.R:6
  2: efftox_parse_outcomes(outcome_str, as.list = TRUE)
  3: stringr::str_detect
  4: getExportedValue(pkg, name)
  5: asNamespace(ns)
  6: getNamespace(ns)
  7: tryCatch(loadNamespace(name), error = function(e) stop(e))
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  -- 24. Error: Thall et al. (2014) model fits correctly to "1NNN 2ENN" (@test_sta
  ICU init failed: U_FILE_ACCESS_ERROR
  1: stan_efftox_demo("1NNN 2ENN", seed = 123) at testthat/test_stan_efftox.R:31
  2: stan_efftox(outcome_str, real_doses = c(1, 2, 4, 6.6, 10), efficacy_hurdle = 0.5, 
         toxicity_hurdle = 0.3, p_e = 0.1, p_t = 0.1, eff0 = 0.5, tox1 = 0.65, eff_star = 0.7, 
         tox_star = 0.25, alpha_mean = -7.9593, alpha_sd = 3.5487, beta_mean = 1.5482, 
         beta_sd = 3.5018, gamma_mean = 0.7367, gamma_sd = 2.5423, zeta_mean = 3.4181, 
         zeta_sd = 2.4406, eta_mean = 0, eta_sd = 0.2, psi_mean = 0, psi_sd = 1, ...)
  3: efftox_parse_outcomes(outcome_str, as.list = TRUE)
  4: stringr::str_detect
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  -- 25. Error: Thall et al. (2014) model fits correctly to "1NNN 2ENN 3ETB" (@tes
  ICU init failed: U_FILE_ACCESS_ERROR
  1: stan_efftox_demo("1NNN 2ENN 3ETB", seed = 123) at testthat/test_stan_efftox.R:53
  2: stan_efftox(outcome_str, real_doses = c(1, 2, 4, 6.6, 10), efficacy_hurdle = 0.5, 
         toxicity_hurdle = 0.3, p_e = 0.1, p_t = 0.1, eff0 = 0.5, tox1 = 0.65, eff_star = 0.7, 
         tox_star = 0.25, alpha_mean = -7.9593, alpha_sd = 3.5487, beta_mean = 1.5482, 
         beta_sd = 3.5018, gamma_mean = 0.7367, gamma_sd = 2.5423, zeta_mean = 3.4181, 
         zeta_sd = 2.4406, eta_mean = 0, eta_sd = 0.2, psi_mean = 0, psi_sd = 1, ...)
  3: efftox_parse_outcomes(outcome_str, as.list = TRUE)
  4: stringr::str_detect
  5: getExportedValue(pkg, name)
  6: asNamespace(ns)
  7: getNamespace(ns)
  8: tryCatch(loadNamespace(name), error = function(e) stop(e))
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  == testthat results  ===========================================================
  OK: 74 SKIPPED: 0 FAILED: 25
  1. Error: Dose-finding outcomes "1NNN 3NTT" parse correctly (@test_df_parse_outcomes.R#7) 
  2. Error: Dose-finding outcomes "1NNN 3NTT" parse correctly to list (@test_df_parse_outcomes.R#15) 
  3. Error: Dose-finding outcomes "1N2T2N2N2N" parse correctly (@test_df_parse_outcomes.R#25) 
  4. Error: Dose-finding outcomes "1N2T2N2N2N" parse correctly to list (@test_df_parse_outcomes.R#33) 
  5. Error: Dose-finding outcomes "1NTT 2T 2NTNNTN 3N" parse correctly (@test_df_parse_outcomes.R#42) 
  6. Error: Dose-finding outcomes "1NTT 2T 2NTNNTN 3N" parse correctly to list (@test_df_parse_outcomes.R#50) 
  7. Error: Dose-finding outcomes "96NTT 40T 1NTNNTN 174N" parse correctly (@test_df_parse_outcomes.R#59) 
  8. Error: Dose-finding outcomes "96NTT 40T 1NTNNTN 174N" parse correctly to list (@test_df_parse_outcomes.R#67) 
  9. Error: Dose-finding outcomes " 1NTT 2T 2NTNNTN 2N" parse correctly (@test_df_parse_outcomes.R#76) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted