* using log directory 'd:/Rcompile/CRANpkg/local/4.3/nomogramFormula.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'nomogramFormula/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'nomogramFormula' version '1.2.0.0' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'nomogramFormula' can be installed ... OK * checking installed package size ... 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [3s] OK * checking Rd files ... [0s] OK * checking Rd metadata ... 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 LazyData ... NOTE 'LazyData' is specified without a 'data' directory * checking examples ... [4s] ERROR Running examples in 'nomogramFormula-Ex.R' failed The error most likely occurred in: > ### Name: TotalPoints.rms > ### Title: Caculate Total Points for nomogram Picture > ### Aliases: TotalPoints.rms > > ### ** Examples > > library(rms) Loading required package: Hmisc Attaching package: 'Hmisc' The following objects are masked from 'package:base': format.pval, units > n <- 1000 > set.seed(17) > d <- data.frame(age = rnorm(n, 50, 10), + blood.pressure = rnorm(n, 120, 15), + cholesterol = rnorm(n, 200, 25), + sex = factor(sample(c('female','male'), n,TRUE))) > > d <- upData(d, + L = .4*(sex=='male') + .045*(age-50) + + (log(cholesterol - 10)-5.2)*(-2*(sex=='female') + 2*(sex=='male')), + y = ifelse(runif(n) < plogis(L), 1, 0)) Input object size: 29616 bytes; 4 variables 1000 observations Added variable L Added variable y New object size: 41856 bytes; 6 variables 1000 observations > > ddist <- datadist(d); options(datadist='ddist') > > f <- lrm(y ~ lsp(age,50) + sex * rcs(cholesterol, 4) + blood.pressure, + data=d) > nom <- nomogram(f) > TotalPoints.rms(rd = d,fit = f,nom = nom) Error: object '.__T__[:base' is not exported by 'namespace:data.table' Execution halted * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR, 1 NOTE