CRAN Package Check Results for Package tableeasy

Last updated on 2026-10-24 13:52:04 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.2 3.66 34.95 38.61 OK
r-devel-linux-x86_64-debian-gcc 1.1.2 2.97 25.37 28.34 ERROR
r-devel-linux-x86_64-fedora-clang 1.1.2 30.33 OK
r-devel-linux-x86_64-fedora-gcc 1.1.2 25.62 OK
r-devel-windows-x86_64 1.1.2 6.00 61.00 67.00 OK
r-patched-linux-x86_64 1.1.2 4.18 32.26 36.44 OK
r-release-linux-x86_64 1.1.2 3.88 32.85 36.73 OK
r-release-macos-arm64 1.1.2 1.00 12.00 13.00 OK
r-release-macos-x86_64 1.1.2 3.00 39.00 42.00 OK
r-release-windows-x86_64 1.1.2 5.00 58.00 63.00 OK
r-oldrel-macos-arm64 1.1.2 OK
r-oldrel-macos-x86_64 1.1.2 3.00 33.00 36.00 OK
r-oldrel-windows-x86_64 1.1.2 7.00 61.00 68.00 OK

Check Details

Version: 1.1.2
Check: examples
Result: ERROR Running examples in ‘tableeasy-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: smooth_curve > ### Title: Smooth Curve > ### Aliases: smooth_curve > > ### ** Examples > > ## Load Mayo Clinic Primary Biliary Cirrhosis Data > library(survival) > library(tableeasy) > data(pbc) > ## Check variables > head(pbc) id time status trt age sex ascites hepato spiders edema bili chol 1 1 400 2 1 58.76523 f 1 1 1 1.0 14.5 261 2 2 4500 0 1 56.44627 f 0 1 1 0.0 1.1 302 3 3 1012 2 1 70.07255 m 0 0 0 0.5 1.4 176 4 4 1925 2 1 54.74059 f 0 1 1 0.5 1.8 244 5 5 1504 1 2 38.10541 f 0 1 1 0.0 3.4 279 6 6 2503 2 2 66.25873 f 0 1 0 0.0 0.8 248 albumin copper alk.phos ast trig platelet protime stage 1 2.60 156 1718.0 137.95 172 190 12.2 4 2 4.14 54 7394.8 113.52 88 221 10.6 3 3 3.48 210 516.0 96.10 55 151 12.0 4 4 2.54 64 6121.8 60.63 92 183 10.3 4 5 3.53 143 671.0 113.15 72 136 10.9 3 6 3.98 50 944.0 93.00 63 NA 11.0 3 > ##The censored data is not discussed here > pbc_full <- subset(pbc,status!=0) > pbc_full$status <- pbc_full$status-1 > ## Make categorical variables factors > varsToFactor <- c('status','trt','ascites','hepato','spiders','edema','stage','sex') > pbc_full[varsToFactor] <- lapply(pbc_full[varsToFactor], factor) > > ## Moderator variables > adj_pbc <- c('age','alk.phos','ast') > > ## Smooth curve of General linear regression: > gam <- smooth_curve(x='albumin', + y='bili', + adj=adj_pbc, + data=pbc_full) > plot(gam$gam,se=TRUE,rug=TRUE,shift=gam$shift) > > > ## Smooth curve of logistic regression: > gam <- smooth_curve(x = 'albumin', + y = 'status', + adj = adj_pbc, + split_var ='age', + div = c(45), + data = pbc_full) > plot(gam$gam[[1]],se=FALSE,rug=TRUE,xlim=c(2,4.5),ylab = 'Adjusted ln ORs for death') > oldpar <- par(new=TRUE) > plot(gam$gam[[2]],se=FALSE,rug=TRUE,xlim=c(2,4.5),ylab = 'Adjusted ln ORs for death',lty=2) > on.exit(par(oldpar)) > > ## Smooth curve of conditional logistic regression: > pbc_full <- data.frame(pbc_full,'ytime'=1) > gam <- smooth_curve(x ='albumin', + y_time = 'ytime', + y = 'status', + adj = adj_pbc, + strata = 'trt', + data = pbc_full) > > termplot(gam,term =c(1),col.term ="black",col.se = "black",se=TRUE,rug=FALSE, + ylab="Log ORs for death") Error in a$specials[[i]] : subscript out of bounds Calls: termplot ... NextMethod -> predict.coxph -> delete.response -> off Execution halted Flavor: r-devel-linux-x86_64-debian-gcc