* using log directory 'd:/RCompile/CRANincoming/R-devel/WARDEN.Rcheck' * using R Under development (unstable) (2025-10-06 r88901 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 'WARDEN/DESCRIPTION' ... OK * this is package 'WARDEN' version '2.0.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [13s] OK * 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 serialization versions ... OK * checking whether package 'WARDEN' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 14.2.0' * checking C++ specification ... NOTE Specified C++11: please drop specification unless essential * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [27s] OK * checking Rd files ... NOTE checkRd: (-1) add_item.Rd:30: Lost braces; missing escapes or markup? 30 | e.g. add_item(input = {a <- 5}) | ^ * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [17s] ERROR Running examples in 'WARDEN-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: run_sim_parallel > ### Title: Run simulations in parallel mode (at the simulation level) > ### Aliases: run_sim_parallel > > ### ** Examples > > library(magrittr) > common_all_inputs <-add_item( + util.sick = 0.8, + util.sicker = 0.5, + cost.sick = 3000, + cost.sicker = 7000, + cost.int = 1000, + coef_noint = log(0.2), + HR_int = 0.8, + drc = 0.035, #different values than what's assumed by default + drq = 0.035, + random_seed_sicker_i = sample.int(100000,5,replace = FALSE) + ) > > common_pt_inputs <- add_item(death= max(0.0000001,rnorm(n=1, mean=12, sd=3))) > > unique_pt_inputs <- add_item(fl.sick = 1, + q_default = util.sick, + c_default = cost.sick + if(arm=="int"){cost.int}else{0}) > > init_event_list <- + add_tte(arm=c("noint","int"), evts = c("sick","sicker","death") ,input={ + sick <- 0 + sicker <- draw_tte(1,dist="exp", + coef1=coef_noint, beta_tx = ifelse(arm=="int",HR_int,1), + seed = random_seed_sicker_i[i]) + + }) > > evt_react_list <- + add_reactevt(name_evt = "sick", + input = {}) %>% + add_reactevt(name_evt = "sicker", + input = { + q_default <- util.sicker + c_default <- cost.sicker + if(arm=="int"){cost.int}else{0} + fl.sick <- 0 + }) %>% + add_reactevt(name_evt = "death", + input = { + q_default <- 0 + c_default <- 0 + curtime <- Inf + }) > > util_ongoing <- "q_default" > cost_ongoing <- "c_default" > > > run_sim_parallel(arm_list=c("int","noint"), + common_all_inputs = common_all_inputs, + common_pt_inputs = common_pt_inputs, + unique_pt_inputs = unique_pt_inputs, + init_event_list = init_event_list, + evt_react_list = evt_react_list, + util_ongoing_list = util_ongoing, + cost_ongoing_list = cost_ongoing, + npats = 2, + n_sim = 1, + psa_bool = FALSE, + ipd = 1, + ncores = 1) Analysis number: 1 Simulation number: 1 Warning: Caught simpleError. Canceling all iterations ... Error in get("continue_on_error", caller, inherits = TRUE) : object 'continue_on_error' not found Calls: run_sim_parallel ... tryCatchList -> tryCatchOne -> -> onError setup:common_all_inputs; Analysis 1; Simulation 1; An error occurred somewhere. Traceback available through traceback() Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [20s] OK Running 'testthat.R' [20s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [41s] OK * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [12s] OK * DONE Status: 1 ERROR, 2 NOTEs