R version 4.4.0 alpha (2024-04-01 r86264 ucrt) Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkg_name <- "psborrow2" > if (requireNamespace("testthat", quietly = TRUE)) { + library(testthat) + reporter <- MultiReporter$new(list( + CheckReporter$new(), + JunitReporter$new(file = "junit-result.xml") + )) + test_results <- test_check(pkg_name, reporter = reporter) + saveRDS(test_results, "unit_testing_results.rds") + } Loading required package: psborrow2 psborrow2 uses cmdstanr for compiling and sampling from models, but it does not seem to be installed. To install: install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) Inputs look good. NOTE: dropping column `ext` for full borrowing. Inputs look good. Call `add_covariates()` with `covariates = c("age", "laserargon", "risk") ` Call `add_covariates()` with `covariates = c("age", "laserargon", "risk") ` Call `add_covariates()` with `covariates = c("I(age^2)", "log(risk)", "laserargon", "risk", "laserargon:risk" ) ` Call `add_covariates()` with `covariates = "laserargon" ` Call `add_covariates()` with `covariates = "laserargon" ` Inputs look good. NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL [ FAIL 0 | WARN 0 | SKIP 59 | PASS 637 ] ══ Skipped tests (59) ══════════════════════════════════════════════════════════ • On CRAN (50): 'test-analysis_class.R:49:3', 'test-analysis_class.R:66:3', 'test-analysis_class.R:86:3', 'test-create_analysis_obj.R:221:1', 'test-create_simulation_obj.R:1:1', 'test-make_model_string_data.R:17:3', 'test-make_model_string_data.R:40:3', 'test-make_model_string_data.R:72:3', 'test-make_model_string_data.R:99:3', 'test-make_model_string_data.R:127:3', 'test-make_model_string_functions.R:12:3', 'test-make_model_string_functions.R:29:3', 'test-make_model_string_functions.R:59:3', 'test-make_model_string_functions.R:80:3', 'test-make_model_string_model.R:14:3', 'test-make_model_string_model.R:34:3', 'test-make_model_string_model.R:64:3', 'test-make_model_string_model.R:89:3', 'test-make_model_string_parameters.R:11:3', 'test-make_model_string_parameters.R:27:3', 'test-make_model_string_parameters.R:52:3', 'test-make_model_string_parameters.R:72:3', 'test-make_model_string_transformed_parameters.R:13:3', 'test-make_model_string_transformed_parameters.R:31:3', 'test-make_model_string_transformed_parameters.R:58:3', 'test-make_model_string_transformed_parameters.R:80:3', 'test-prior_bernoulli.R:19:3', 'test-prior_bernoulli.R:23:3', 'test-prior_beta.R:20:3', 'test-prior_beta.R:24:3', 'test-prior_cauchy.R:20:3', 'test-prior_cauchy.R:24:3', 'test-prior_exponential.R:19:3', 'test-prior_exponential.R:23:3', 'test-prior_gamma.R:23:3', 'test-prior_gamma.R:27:3', 'test-prior_half_cauchy.R:21:3', 'test-prior_half_cauchy.R:25:3', 'test-prior_half_normal.R:21:3', 'test-prior_half_normal.R:25:3', 'test-prior_normal.R:20:3', 'test-prior_normal.R:24:3', 'test-prior_poisson.R:19:3', 'test-prior_poisson.R:23:3', 'test-simulate_data.R:550:3', 'test-simulate_data_baseline.R:49:3', 'test-simulate_data_baseline.R:61:3', 'test-simulate_data_baseline.R:73:3', 'test-uniform_prior.R:21:3', 'test-uniform_prior.R:26:3' • check_cmdstan() is not TRUE (9): 'test-analysis_class.R:165:3', 'test-cmdstan.R:1:1', 'test-make_model_string_parameters.R:76:3', 'test-make_model_string_parameters.R:88:3', 'test-make_model_string_parameters.R:114:3', 'test-make_model_string_parameters.R:126:3', 'test-make_model_string_parameters.R:139:3', 'test-mcmc_sample-analysis.R:34:1', 'test-mcmc_sample-simulation.R:123:1' [ FAIL 0 | WARN 0 | SKIP 59 | PASS 637 ] > > proc.time() user system elapsed 9.75 0.89 10.57