* using log directory 'd:/Rcompile/CRANpkg/local/4.5/bayesassurance.Rcheck' * using R version 4.5.1 (2025-06-13 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'bayesassurance/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'bayesassurance' version '0.1.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'bayesassurance' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [7s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... NOTE Found the following Rd file(s) with Rd \link{} targets missing package anchors: pwr_curve.Rd: ggplot2 Please provide package anchors for all Rd \link{} targets not in the package itself and the base packages. * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [18s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [108s] ERROR Running 'testthat.R' [108s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(bayesassurance) > > test_check("bayesassurance") [1] 20 10 [1] 30 10 [1] 40 10 [1] 20 20 [1] 30 20 [1] 40 20 [1] 20 30 [1] 30 30 [1] 40 30 [1] 20 10 [1] 30 10 [1] 40 10 [1] 20 20 [1] 30 20 [1] 40 20 [1] 20 30 [1] 30 30 [1] 40 30 [1] 20 10 [1] 30 20 [1] 40 30 [1] 10 20 [1] 10 20 [ FAIL 15 | WARN 92 | SKIP 0 | PASS 125 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-bayes_adcock.R:47:3'): Assurance plot output is a ggplot ───── is.ggplot(out$assurance_plot) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-bayes_adcock.R:57:3'): Correct labels on x and y axes ────────── Error in `out$assurance_plot$labels`: object of type 'object' is not subsettable Backtrace: ▆ 1. └─testthat::expect_identical(out$assurance_plot$labels$y, "Assurance") at test-bayes_adcock.R:57:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-bayes_goal_func.R:52:3'): Rate of correct classification plot is a ggplot ── is.ggplot(out$rc_plot) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-bayes_goal_func.R:63:3'): Correct labels on x and y axes ─────── Error in `out$rc_plot$labels`: object of type 'object' is not subsettable Backtrace: ▆ 1. └─testthat::expect_identical(out$rc_plot$labels$y, "Rate of Correct Classification") at test-bayes_goal_func.R:63:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-bayes_sim.R:57:3'): Assurance plot output is a ggplot ──────── is.ggplot(out$assurance_plot) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-bayes_sim.R:70:3'): Correct labels on x and y axes ───────────── Error in `out$assurance_plot$labels`: object of type 'object' is not subsettable Backtrace: ▆ 1. └─testthat::expect_identical(out$assurance_plot$labels$y, "Assurance") at test-bayes_sim.R:70:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-bayes_sim_betabinomial.R:53:3'): Assurance plot output is a ggplot ── is.ggplot(out$assurance_plot) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-bayes_sim_betabinomial.R:65:3'): Correct labels on x and y axes ── Error in `out$assurance_plot$labels`: object of type 'object' is not subsettable Backtrace: ▆ 1. └─testthat::expect_identical(out$assurance_plot$labels$y, "Assurance") at test-bayes_sim_betabinomial.R:65:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Error ('test-bayes_sim_unknownvar.R:75:3'): Correct labels on x and y axes of assurance plot ── Error in `out$assur_plot$labels`: object of type 'object' is not subsettable Backtrace: ▆ 1. └─testthat::expect_identical(out$assur_plot$labels$y, "Assurance") at test-bayes_sim_unknownvar.R:75:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-bayesassurance.R:28:3'): Assurance plot output is a ggplot ─── is.ggplot(out$assurance_plot) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-bayesassurance.R:36:3'): Correct labels on x and y axes ──────── Error in `out$assurance_plot$labels`: object of type 'object' is not subsettable Backtrace: ▆ 1. └─testthat::expect_identical(out$assurance_plot$labels$y, "Assurance") at test-bayesassurance.R:36:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-frequentist.R:28:3'): Power plot output is a ggplot ────────── is.ggplot(out$pwr_plot) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-frequentist.R:36:3'): Correct labels on x and y axes ─────────── Error in `out$pwr_plot$labels`: object of type 'object' is not subsettable Backtrace: ▆ 1. └─testthat::expect_identical(out$pwr_plot$labels$y, "Power") at test-frequentist.R:36:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) ── Failure ('test-pwr_curves.R:99:3'): Plot output is a ggplot ───────────────── is.ggplot(out$plot) is not TRUE `actual`: FALSE `expected`: TRUE ── Error ('test-pwr_curves.R:114:3'): Correct labels on x and y axes ─────────── Error in `out$plot$labels`: object of type 'object' is not subsettable Backtrace: ▆ 1. └─testthat::expect_identical(out$plot$labels$y, "Power/Assurance") at test-pwr_curves.R:114:3 2. └─testthat::quasi_label(enquo(object), label, arg = "object") 3. └─rlang::eval_bare(expr, quo_get_env(quo)) [ FAIL 15 | WARN 92 | SKIP 0 | PASS 125 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [15s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 1 ERROR, 1 NOTE