* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/AdapEnetClass.Rcheck’ * using R Under development (unstable) (2022-04-13 r82166) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * checking for file ‘AdapEnetClass/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘AdapEnetClass’ version ‘1.2’ * 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 ‘AdapEnetClass’ can be installed ... OK * checking package 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 R 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 ... [12s/12s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘AdapEnetClass-Ex.R’ failed The error most likely occurred in: > ### Name: AEnet.aft > ### Title: Adaptive elastic net for censored data based on AFT models > ### Aliases: AEnet.aft > ### Keywords: Adaptive elastic net AFT models lars > > ### ** Examples > > #For full data typically used for AFT models (using imputeYn (2015) package). > dat<-data(n=100, p=10, r=0, b1=c(rep(5,5),rep(0,5)), sig=1, Cper=0) > > #This needs to run for generating weights of the observations > l<-mrbj(cbind(dat$y, dat$delta) ~ dat$x, mcsize=100, trace=FALSE, gehanonly=FALSE) > > #AEnet.aft: adaptive elastic net > wt<-round(l$enet) > ft.1<-AEnet.aft(dat$x, dat$y, dat$delta, weight=wt, lambda2=1, maxit=10) > ## No test: > ft.1 Call: NULL Error in round(rev(x$R2)[1], 3) : non-numeric argument to mathematical function Calls: -> print.lars -> cat -> format 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: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/AdapEnetClass.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:04.33, 57.11 + 6.76