* using log directory ‘/srv/hornik/tmp/CRAN_pretest/scR.Rcheck’ * using R Under development (unstable) (2024-11-26 r87383) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.1 (1) Debian flang-new version 19.1.1 (1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘scR/DESCRIPTION’ ... OK * this is package ‘scR’ version ‘0.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/6s] NOTE Maintainer: ‘Perry Carter ’ New submission Possibly misspelled words in DESCRIPTION: Chervonenkis (2:24, 9:199) Choi (9:423) VCD (9:223) Vapnik (2:17, 9:192) * 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 serialization versions ... OK * checking whether package ‘scR’ can be installed ... [74s/74s] OK * checking package directory ... OK * checking for future file timestamps ... 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/2s] OK * checking whether the package can be loaded with stated dependencies ... [2s/2s] OK * checking whether the package can be unloaded cleanly ... [2s/2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK * checking whether the namespace can be unloaded cleanly ... [2s/2s] OK * checking loading without being on the library search path ... [2s/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 ... [27s/27s] OK * checking Rd files ... [0s/0s] 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 ... [0s/0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking examples ... [3s/3s] ERROR Running examples in ‘scR-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: getpac > ### Title: Recalculate achieved sample complexity bounds given different > ### parameter inputs > ### Aliases: getpac > > ### ** Examples > > mylogit <- function(formula, data){ + m <- structure( + glm(formula=formula,data=data,family=binomial(link="logit")), + class=c("svrclass","glm") #IMPORTANT - must use the class svrclass to work correctly + ) + return(m) + } > mypred <- function(m,newdata){ + out <- predict.glm(m,newdata,type="response") + out <- factor(ifelse(out>0.5,1,0),levels=c("0","1")) + #Important - must specify levels to account for possibility of all + #observations being classified into the same class in smaller samples + return(out) + } > results <- estimate_accuracy(two_year_recid ~ race + + sex + age + juv_fel_count + juv_misd_count + priors_count + + charge_degree..misd.fel.,mylogit,br,predictfn = mypred, + nsample=10, + steps=10) Error in .check_ncores(length(names)) : 32 simultaneous processes spawned Calls: estimate_accuracy -> makeCluster -> makePSOCKcluster -> .check_ncores Execution halted * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 NOTE