* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/CSCNet.Rcheck’ * using R Under development (unstable) (2025-12-20 r89211) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘CSCNet/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘CSCNet’ version ‘0.1.2’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘CSCNet’ can be installed ... [14s/14s] 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 ... 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 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 ... [19s/20s] OK * checking Rd files ... OK * 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking examples with --run-donttest ... [73s/74s] ERROR Running examples in ‘CSCNet-Ex.R’ failed The error most likely occurred in: > ### Name: tune_penCSC > ### Title: tune_penCSC > ### Aliases: tune_penCSC > > ### ** Examples > > ## No test: > > library(riskRegression) riskRegression version 2025.09.17 > > data(Melanoma) > > vl <- list('1'=~age+sex+epicel+ici, + + '2'=c('age','ulcer','thick','invasion')) > > al <- list('1'=0,'2'=c(.5,1)) > > #External standardization function with data frame as its input and output > > library(recipes) Attaching package: ‘recipes’ The following object is masked from ‘package:stringr’: fixed The following object is masked from ‘package:stats’: step > > std.fun <- function(data){ + + cont_vars <- data %>% select(where(~is.numeric(.))) %>% names + + cont_vars <- cont_vars[-which(cont_vars %in% c('time','status'))] + + #External functions from recipes package are being used + + recipe(~.,data=data) %>% + + step_center(all_of(cont_vars)) %>% + + step_scale(all_of(cont_vars)) %>% + + prep(training=data) %>% juice + + } > > set.seed(233) > > test <- tune_penCSC(time='time',status='status',vars.list=vl,data=Melanoma,horizons=1825, + + event=1,method='cv',k=5,metrics='AUC',alpha.grid=al,standardize=FALSE, + + preProc.fun=std.fun,parallel=TRUE,preProc.pkgs='recipes') Process was done in 1.113879 mins. Warning: There was 1 warning in `dplyr::filter()`. ℹ In argument: `x$mean.AUC == max(x$mean.AUC, na.rm = T)`. Caused by warning in `max()`: ! no non-missing arguments to max; returning -Inf Error in `purrr::map()`: ℹ In index: 1. ℹ With name: 1825. Caused by error in `purrr::pmap()`: ℹ In index: 1. ℹ With name: 1. Caused by error in `if (alpha > 1) ...`: ! argument is of length zero Backtrace: ▆ 1. ├─CSCNet::tune_penCSC(...) 2. │ └─final_params %>% ... 3. ├─purrr::map(...) 4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 5. │ ├─purrr:::with_indexed_errors(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ ├─purrr:::call_with_cleanup(...) 8. │ └─CSCNet (local) .f(.x[[i]], ...) 9. │ └─CSCNet::penCSC(...) 10. │ └─purrr::pmap(...) 11. │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress) 12. │ ├─purrr:::with_indexed_errors(...) 13. │ │ └─base::withCallingHandlers(...) 14. │ ├─purrr:::call_with_cleanup(...) 15. │ └─CSCNet (local) .f(...) 16. │ ├─... %>% unique() 17. │ └─glmnet::glmnet(...) 18. ├─base::unique(.) 19. ├─base::sort(., decreasing = T) 20. ├─CSCNet (local) ``(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [81s/81s] ERROR Error(s) in re-building vignettes: ... --- re-building ‘CSCNet.Rmd’ using rmarkdown Quitting from CSCNet.Rmd:108-169 [unnamed-chunk-7] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `purrr::map()`: ℹ In index: 1. ℹ With name: 1825. Caused by error in `purrr::pmap()`: ℹ In index: 1. ℹ With name: 1. Caused by error in `if (alpha > 1) ...`: ! argument is of length zero --- Backtrace: ▆ 1. ├─CSCNet::tune_penCSC(...) 2. │ └─final_params %>% ... 3. ├─purrr::map(...) 4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 5. │ ├─purrr:::with_indexed_errors(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ ├─purrr:::call_with_cleanup(...) 8. │ └─CSCNet (local) .f(.x[[i]], ...) 9. │ └─CSCNet::penCSC(...) 10. │ └─purrr::pmap(...) 11. │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress) 12. │ ├─purrr:::with_indexed_errors(...) 13. │ │ └─base::withCallingHandlers(...) 14. │ ├─purrr:::call_with_cleanup(...) 15. │ └─CSCNet (local) .f(...) 16. │ ├─... %>% unique() 17. │ └─glmnet::glmnet(...) 18. ├─base::unique(.) 19. ├─base::sort(., decreasing = T) 20. └─CSCNet (local) ``(.) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'CSCNet.Rmd' failed with diagnostics: ℹ In index: 1. ℹ With name: 1825. Caused by error in `purrr::pmap()`: ℹ In index: 1. ℹ With name: 1. Caused by error in `if (alpha > 1) ...`: ! argument is of length zero --- failed re-building ‘CSCNet.Rmd’ SUMMARY: processing the following file failed: ‘CSCNet.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 2 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/CSCNet.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 4:41.90, 255.25 + 24.65