CRAN Package Check Results for Package trtf

Last updated on 2025-01-09 01:49:59 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4-2 ERROR
r-devel-linux-x86_64-debian-gcc 0.4-2 5.42 111.07 116.49 OK
r-devel-linux-x86_64-fedora-clang 0.4-2 285.81 OK
r-devel-linux-x86_64-fedora-gcc 0.4-2 269.62 OK
r-devel-windows-x86_64 0.4-2 10.00 179.00 189.00 OK
r-patched-linux-x86_64 0.4-2 7.93 155.17 163.10 OK
r-release-linux-x86_64 0.4-2 7.40 159.24 166.64 OK
r-release-macos-arm64 0.4-2 74.00 OK
r-release-macos-x86_64 0.4-2 113.00 OK
r-release-windows-x86_64 0.4-2 9.00 176.00 185.00 OK
r-oldrel-macos-arm64 0.4-2 78.00 OK
r-oldrel-macos-x86_64 0.4-2 138.00 OK
r-oldrel-windows-x86_64 0.4-2 12.00 223.00 235.00 OK

Check Details

Version: 0.4-2
Check: tests
Result: ERROR Running ‘GBSG2-Ex.R’ [4s/5s] Running ‘regtest-shift-scale.R’ [2s/3s] Running ‘regtest-traforest.R’ [32s/38s] Running ‘regtest-trafotree.R’ [4s/6s] Running the tests in ‘tests/GBSG2-Ex.R’ failed. Complete output: > > suppressWarnings(RNGversion("3.5.2")) > > library("trtf") Loading required package: mlt Loading required package: basefun Loading required package: variables Loading required package: partykit Loading required package: grid Attaching package: 'grid' The following object is masked from 'package:variables': unit Loading required package: libcoin Loading required package: mvtnorm Loading required package: tram > library("partykit") > library("survival") > data("GBSG2", package = "TH.data") > set.seed(290875) > ### Make UL and Windooze happy > options(digits = 5) > > yvar <- numeric_var("y", support = c(100, 2000), bounds = c(0, Inf)) > By <- Bernstein_basis(yvar, order = 5, ui = "incre") > m <- ctm(response = By, todistr = "MinExt") > GBSG2$y <- with(GBSG2, Surv(time, cens)) > > ctrl <- ctree_control(splitstat = "quad", teststat = "quad", minsplit = 40, minbucket = 20) > st2 <- trafotree(m, formula = y ~ horTh + age + menostat + tsize + tgrade + + pnodes + progrec + estrec, control = ctrl, data = GBSG2) > > coef(st2) Bs1(y) Bs2(y) Bs3(y) Bs4(y) Bs5(y) Bs6(y) 3 -3.7201 -0.60370 -0.60370 -0.36144 -0.13315 -0.13315 4 -6.1479 -1.21945 -1.21945 -1.21945 -0.84907 -0.59174 6 -4.2362 -0.42467 -0.42467 -0.16971 -0.16971 0.15229 7 -2.9301 0.22528 0.22528 0.22528 0.41536 0.62964 > logLik(st2) 'log Lik.' -2571.1 (df=24) > logLik(st2, newdata = GBSG2) 'log Lik.' -2571.1 (df=24) > > predict(st2, newdata = GBSG2[1:3,], type = "node") 1 2 3 4 6 6 > predict(st2, newdata = GBSG2[1:3,], type = "coef") Bs1(y) Bs2(y) Bs3(y) Bs4(y) Bs5(y) Bs6(y) 4 -6.1479 -1.21945 -1.21945 -1.21945 -0.84907 -0.59174 6 -4.2362 -0.42467 -0.42467 -0.16971 -0.16971 0.15229 6 -4.2362 -0.42467 -0.42467 -0.16971 -0.16971 0.15229 > predict(st2, newdata = GBSG2[1:3,], type = "hazard") [,1] [,2] [,3] [1,] 0.0000e+00 0.00000000 0.00000000 [2,] 2.9349e-05 0.00015119 0.00015119 [3,] 7.8176e-05 0.00030685 0.00030685 [4,] 1.5955e-04 0.00050786 0.00050786 [5,] 2.6012e-04 0.00070888 0.00070888 [6,] 3.5168e-04 0.00085936 0.00085936 [7,] 4.0786e-04 0.00092841 0.00092841 [8,] 4.1869e-04 0.00091451 0.00091451 [9,] 3.9225e-04 0.00083867 0.00083867 [10,] 3.4638e-04 0.00073070 0.00073070 [11,] 2.9897e-04 0.00061778 0.00061778 [12,] 2.6246e-04 0.00051912 0.00051912 [13,] 2.4287e-04 0.00044562 0.00044562 [14,] 2.4126e-04 0.00040212 0.00040212 [15,] 2.5551e-04 0.00039045 0.00039045 [16,] 2.8169e-04 0.00041213 0.00041213 [17,] 3.1447e-04 0.00047067 0.00047067 [18,] 3.4703e-04 0.00057394 0.00057394 [19,] 3.7069e-04 0.00073697 0.00073697 [20,] 3.7474e-04 0.00098676 0.00098676 > > plot(st2, tp_args = list(type = "survivor")) > > class(st2) <- class(st2)[-1L] > plot(st2) > > st1 <- ctree(y ~ horTh + age + menostat + tsize + tgrade + + pnodes + progrec + estrec, data = GBSG2, control = ctrl) Error in loadNamespace(x) : there is no package called 'coin' Calls: ctree ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Running the tests in ‘tests/regtest-shift-scale.R’ failed. Complete output: > > library("tram") Loading required package: mlt Loading required package: basefun Loading required package: variables Loading required package: mvtnorm > library("trtf") Loading required package: partykit Loading required package: grid Attaching package: 'grid' The following object is masked from 'package:variables': unit Loading required package: libcoin > library("coin") Error in library("coin") : there is no package called 'coin' Execution halted Running the tests in ‘tests/regtest-trafotree.R’ failed. Complete output: > > suppressWarnings(RNGversion("3.5.2")) > > library("trtf") Loading required package: mlt Loading required package: basefun Loading required package: variables Loading required package: partykit Loading required package: grid Attaching package: 'grid' The following object is masked from 'package:variables': unit Loading required package: libcoin Loading required package: mvtnorm Loading required package: tram > library("survival") > data("GBSG2", package = "TH.data") > set.seed(290875) > ### Make UL and Windooze happy > options(digits = 5) > > yvar <- numeric_var("y", support = c(100, 2000), bounds = c(0, Inf)) > By <- Bernstein_basis(yvar, order = 5, ui = "incre") > m <- ctm(response = By, todistr = "MinExt") > GBSG2$y <- with(GBSG2, Surv(time, cens)) > > ctrl <- ctree_control(splitstat = "quad", teststat = "quad", minsplit = 40, minbucket = 20) > st2 <- trafotree(m, formula = y ~ horTh + age + menostat + tsize + tgrade + + pnodes + progrec + estrec, control = ctrl, data = GBSG2) > > coef(st2) Bs1(y) Bs2(y) Bs3(y) Bs4(y) Bs5(y) Bs6(y) 3 -3.7201 -0.60370 -0.60370 -0.36144 -0.13315 -0.13315 4 -6.1479 -1.21945 -1.21945 -1.21945 -0.84907 -0.59174 6 -4.2362 -0.42467 -0.42467 -0.16971 -0.16971 0.15229 7 -2.9301 0.22528 0.22528 0.22528 0.41536 0.62964 > logLik(st2) 'log Lik.' -2571.1 (df=24) > logLik(st2, newdata = GBSG2) 'log Lik.' -2571.1 (df=24) > logLik(st2, newdata = GBSG2[1:10,]) 'log Lik.' -56.966 (df=24) > sum(sapply(1:10, function(i) logLik(st2, newdata = GBSG2[i,, drop = FALSE]))) [1] -56.966 > > predict(st2, newdata = GBSG2[1:3,], type = "node") 1 2 3 4 6 6 > predict(st2, newdata = GBSG2[1:3,], type = "coef") Bs1(y) Bs2(y) Bs3(y) Bs4(y) Bs5(y) Bs6(y) 4 -6.1479 -1.21945 -1.21945 -1.21945 -0.84907 -0.59174 6 -4.2362 -0.42467 -0.42467 -0.16971 -0.16971 0.15229 6 -4.2362 -0.42467 -0.42467 -0.16971 -0.16971 0.15229 > predict(st2, newdata = GBSG2[1:3,], type = "hazard") [,1] [,2] [,3] [1,] 0.0000e+00 0.00000000 0.00000000 [2,] 2.9349e-05 0.00015119 0.00015119 [3,] 7.8176e-05 0.00030685 0.00030685 [4,] 1.5955e-04 0.00050786 0.00050786 [5,] 2.6012e-04 0.00070888 0.00070888 [6,] 3.5168e-04 0.00085936 0.00085936 [7,] 4.0786e-04 0.00092841 0.00092841 [8,] 4.1869e-04 0.00091451 0.00091451 [9,] 3.9225e-04 0.00083867 0.00083867 [10,] 3.4638e-04 0.00073070 0.00073070 [11,] 2.9897e-04 0.00061778 0.00061778 [12,] 2.6246e-04 0.00051912 0.00051912 [13,] 2.4287e-04 0.00044562 0.00044562 [14,] 2.4126e-04 0.00040212 0.00040212 [15,] 2.5551e-04 0.00039045 0.00039045 [16,] 2.8169e-04 0.00041213 0.00041213 [17,] 3.1447e-04 0.00047067 0.00047067 [18,] 3.4703e-04 0.00057394 0.00057394 [19,] 3.7069e-04 0.00073697 0.00073697 [20,] 3.7474e-04 0.00098676 0.00098676 > > plot(st2, tp_args = list(type = "survivor")) > > st21 <- st2 > class(st21) <- class(st21)[-1L] > plot(st21) > > simulate(st2, newdata = GBSG2[1:3,], nsim = 3) [[1]] [1] (2000, Inf] 1715.3 1942.4 [[2]] [1] 1765.5 (2000, Inf] (2000, Inf] [[3]] [1] 968.81 (2000, Inf] 640.67 > > st1 <- ctree(y ~ horTh + age + menostat + tsize + tgrade + + pnodes + progrec + estrec, data = GBSG2, control = ctrl) Error in loadNamespace(x) : there is no package called 'coin' Calls: ctree ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-devel-linux-x86_64-debian-clang