R Under development (unstable) (2025-01-28 r87664 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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://stan-dev.r-universe.dev", 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 33 | PASS 560 ] ══ Skipped tests (33) ══════════════════════════════════════════════════════════ • On CRAN (29): 'test-analysis_class.R:49:3', 'test-analysis_class.R:66:3', 'test-analysis_class.R:86:3', 'test-create_analysis_obj.R:232:1', 'test-create_simulation_obj.R:1:1', '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:578: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 (4): 'test-analysis_class.R:165:3', 'test-cmdstan.R:1:1', 'test-mcmc_sample-analysis.R:32:1', 'test-mcmc_sample-simulation.R:123:1' [ FAIL 0 | WARN 0 | SKIP 33 | PASS 560 ] > > proc.time() user system elapsed 8.20 0.93 9.12