* using log directory 'd:/RCompile/CRANincoming/R-devel/PHeval.Rcheck' * using R Under development (unstable) (2024-08-26 r87056 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'PHeval/DESCRIPTION' ... OK * this is package 'PHeval' version '1.0' * checking CRAN incoming feasibility ... NOTE Maintainer: 'Cecile Chauvel ' New maintainer: Cecile Chauvel Old maintainer(s): Cecile Chauvel No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: person(given = "Cecile", family = "Chauvel", role = c("aut", "cre"), email = "cecile.chauvel@univ-lyon1.fr") as necessary. * 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 'PHeval' 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 ... [10s] NOTE pvalmax: no visible global function definition for 'rmvnorm' testscore: no visible global function definition for 'pnorm' testscore: no visible global function definition for 'pmvnorm' testscore: no visible global function definition for 'pchisq' Undefined global functions or variables: pchisq pmvnorm pnorm rmvnorm Consider adding importFrom("stats", "pchisq", "pnorm") to your NAMESPACE file. * checking Rd files ... WARNING ./man/PHeval-package.Rd: non-ASCII input and no declared encoding ./man/testscore.Rd: non-ASCII input and no declared encoding problems found in 'PHeval-package.Rd', 'testscore.Rd' * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'plotscore.Rd': \usage lines wider than 90 characters: plotscore(s, printCB = FALSE , component.num = 1:dim(s[[1]])[2], main = "" , xlab = "Time", ylab = "Standardized score", ylim) Rd file 'testscore.Rd': \examples lines wider than 100 characters: coxph(Surv(futime,fustat)~ age+rx,data=ovarian) # the values 0.14 and -0.8 are the estimated coefficients in the Cox model. These lines will be truncated in the PDF manual. * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... WARNING Codoc mismatches from Rd file 'testscore.Rd': testscore Code: function(formula, data, beta0 = 0, n_rep = 10^6, digits = 5) Docs: function(formula, data, beta0 = 0, n_rep = 10^6, round.res = 5) Argument names in code not in docs: digits Argument names in docs not in code: round.res Mismatches in argument names: Position: 5 Code: digits Docs: round.res * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... ERROR Running examples in 'PHeval-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: PHeval-package > ### Title: Evaluation of the proportional hazards assumption with a > ### standardized score process > ### Aliases: PHeval-package PHeval > > ### ** Examples > > library(survival) > S=standscore(futime+fustat~resid.ds+rx,data=ovarian) > plotscore(S,printCB = TRUE) > testscore(futime+fustat~resid.ds+rx,data=ovarian) Error in rmvnorm(n_rep, mean = c(0, 0, 0, 0), sigma = matrix(c(1, 0, sqrt(3)/2, : could not find function "rmvnorm" Calls: testscore -> pvalmax Execution halted * checking PDF version of manual ... [28s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 2 WARNINGs, 3 NOTEs