* using log directory 'd:/RCompile/CRANincoming/R-devel/scR.Rcheck' * using R Under development (unstable) (2024-11-24 r87369 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * 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 ... NOTE Maintainer: 'Perry Carter ' New submission Possibly misspelled words in DESCRIPTION: VCD (2:17) scR (10:18) * 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 'scR' can be installed ... OK * checking installed package size ... 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 ... 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 ... [11s] NOTE acc_sim: no visible binding for global variable 'nsample' acc_sim: no visible binding for global variable 'dat' acc_sim: no visible global function definition for 'rbinom' acc_sim: no visible binding for global variable 'eta' acc_sim: no visible binding for global variable 'outcome' acc_sim: no visible global function definition for 'model' acc_sim: no visible global function definition for 'predict' acc_sim: no visible binding for global variable 'power' acc_sim: no visible binding for global variable 'powersims' acc_sim: no visible binding for global variable 'effect_size' acc_sim: no visible global function definition for 'rnorm' acc_sim: no visible global function definition for 'lm' acc_sim: no visible binding for global variable 'alpha' estimate_accuracy: no visible global function definition for 'model.frame' estimate_accuracy: no visible global function definition for 'pblapply' estimate_accuracy: no visible binding for global variable 'accuracy' estimate_accuracy: no visible binding for global variable 'prec' estimate_accuracy: no visible binding for global variable 'rec' estimate_accuracy: no visible binding for global variable 'fscore' estimate_accuracy: no visible global function definition for 'quantile' estimate_accuracy: no visible binding for global variable 'pwr' gendata: no visible global function definition for 'runif' gendata: no visible global function definition for 'predict' getpac: no visible binding for global variable 'accuracy' getpac: no visible binding for global variable 'prec' getpac: no visible binding for global variable 'rec' getpac: no visible binding for global variable 'fscore' getpac: no visible global function definition for 'quantile' getpac: no visible binding for global variable 'pwr' plot_accuracy: no visible binding for global variable 'Accuracy' plot_accuracy: no visible binding for global variable 'Power' plot_accuracy: no visible binding for global variable '.' plot_accuracy: no visible binding for global variable 'Value' plot_accuracy: no visible binding for global variable 'Metric' risk_bounds: no visible binding for global variable 'm' risk_bounds: no visible binding for global variable 'l' risk_bounds: no visible global function definition for 'rnorm' risk_bounds: no visible global function definition for 'model' risk_bounds: no visible global function definition for 'predict' simvcd: no visible global function definition for 'res2stopCluster' simvcd: no visible global function definition for 'optim' Undefined global functions or variables: . Accuracy Metric Power Value accuracy alpha dat effect_size eta fscore l lm m model model.frame nsample optim outcome pblapply power powersims prec predict pwr quantile rbinom rec res2stopCluster rnorm runif Consider adding importFrom("stats", "lm", "model.frame", "optim", "power", "predict", "quantile", "rbinom", "rnorm", "runif") to your NAMESPACE file. * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'estimate_accuracy.Rd': \examples lines wider than 100 characters: out <- factor(ifelse(out>0.5,1,0),levels=c("0","1")) #Important - must specify levels to account for possibility of all observations be ... [TRUNCATED] #race + sex + age + juv_fel_count + juv_misd_count + priors_count + charge_degree..misd.fel.,mylogit,br, Rd file 'gendata.Rd': \examples lines wider than 100 characters: #Important - must specify levels to account for possibility of all observations being classified into the same class in smaller samples Rd file 'getpac.Rd': \examples lines wider than 100 characters: out <- factor(ifelse(out>0.5,1,0),levels=c("0","1")) #Important - must specify levels to account for possibility of all observations be ... [TRUNCATED] #results <- estimate_accuracy(two_year_recid ~ race + sex + age + juv_fel_count + juv_misd_count + priors_count + charge_degree..misd.f ... [TRUNCATED] Rd file 'plot_accuracy.Rd': \examples lines wider than 100 characters: #Important - must specify levels to account for possibility of all observations being classified into the same class in smaller samples #results <- estimate_accuracy(two_year_recid ~ race + sex + age + juv_fel_count + juv_misd_count + priors_count + charge_degree..misd.f ... [TRUNCATED] Rd file 'scb.Rd': \examples lines wider than 100 characters: #Important - must specify levels to account for possibility of all observations being classified into the same class in smaller samples #scb(epsilon=0.05,delta=0.05,eta=0.05,theor=FALSE,model=mylogit,dim=7,m=100,k=100,maxn=500,predictfn = mypred) Rd file 'simvcd.Rd': \examples lines wider than 100 characters: #Important - must specify levels to account for possibility of all observations being classified into the same class in smaller samples #vcd <- simvcd(model=mylogit,dim=7,m=100,k=100,maxn=500,predictfn = mypred) #Takes about 20 minutes to run on mid-range test machine (I ... [TRUNCATED] These lines will be truncated in the PDF manual. * checking Rd cross-references ... NOTE Found the following Rd file(s) with Rd \link{} targets missing package anchors: plot_accuracy.Rd: ggplot2, plotly 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [15s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking PDF version of manual ... [12s] OK * checking HTML version of manual ... OK * DONE Status: 4 NOTEs