CRAN Package Check Results for Package OptimalTiming

Last updated on 2026-10-24 09:50:58 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 5.64 63.74 69.38 NOTE
r-devel-linux-x86_64-debian-gcc 0.1.0 5.61 41.97 47.58 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.0 48.17 OK
r-devel-linux-x86_64-fedora-gcc 0.1.0 46.33 OK
r-devel-windows-x86_64 0.1.0 8.00 76.00 84.00 OK
r-patched-linux-x86_64 0.1.0 6.68 58.25 64.93 OK
r-release-linux-x86_64 0.1.0 5.70 60.12 65.82 OK
r-release-macos-arm64 0.1.0 2.00 17.00 19.00 OK
r-release-macos-x86_64 0.1.0 5.00 64.00 69.00 OK
r-release-windows-x86_64 0.1.0 7.00 73.00 80.00 OK
r-oldrel-macos-arm64 0.1.0 OK
r-oldrel-macos-x86_64 0.1.0 4.00 59.00 63.00 OK
r-oldrel-windows-x86_64 0.1.0 9.00 89.00 98.00 OK

Check Details

Version: 0.1.0
Check: CRAN incoming feasibility
Result: NOTE Maintainer: ‘Xiao Lin <xlin3@mdanderson.org>’ No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: c(person(given = "Xiao", family = "Lin", role = c("aut", "cre"), email = "xlin3@mdanderson.org"), person(given = "Xuelin", family = "Huang", role = "aut", email = "xlhuang@mdanderson.org")) as necessary. Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.1.0
Check: examples
Result: ERROR Running examples in ‘OptimalTiming-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: optim.fit > ### Title: Fit multi-state model for optimization > ### Aliases: optim.fit > > ### ** Examples > > > ## Not run: > ##D library(OptimalTiming) > ##D ## read data > ##D data(SimCml) > ##D > ##D ## fit multistate model if the time to new treatment initiation is available in SimCml > ##D fit=optim.fit(data=SimCml, > ##D transM=matrix(c(0,1,0,0,0,1,0,0,0,1,0,1,1,1,0,0,0,1,1,1,1, > ##D 0,0,0,0,1,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0),7,byrow=TRUE), > ##D nstate=7,state_label=c("diagnose","cp1","ap","cp2","bc","sct","death"), > ##D event_label=c("cp1.s","ap.s","cp2.s","bc.s","sct.s","death.s"), > ##D treatment=c("sct","sct.s"),absorb=c("death","death.s"), > ##D cov=c("age"),cov_value=c(0)) > ##D > ##D ## view the content of this object > ##D objects(fit) > ##D > ##D ## output transition probabilities > ##D fit$treat$tranProb > ##D fit$no_treat$tranProb > ## End(Not run) > > ## Don't show: > library(OptimalTiming) > data(SimCml) > SimCml=SimCml[SimCml$sct.s==0,] > SimCml=SimCml[,c(1,2,3,4,11,12,13,14)] > fit=optim.fit(data=SimCml, + transM=matrix(c(0,1,1,1,0,0,1,1,0,0,0,1,0,0,0,0),4,byrow=TRUE), + nstate=4,state_label=c("diagnose","cp1","ap","death"), + event_label=c("cp1.s","ap.s","death.s"), + absorb=c("death","death.s"), + cov=c("age"),cov_value=c(0)) Error in a$specials[[i]] : subscript out of bounds Calls: optim.fit ... model.matrix -> model.matrix.coxph -> delete.response -> off Execution halted Flavor: r-devel-linux-x86_64-debian-gcc