Last updated on 2024-11-23 16:49:25 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 1.0.10 | 8.17 | 88.65 | 96.82 | OK | |
r-devel-linux-x86_64-debian-gcc | 1.0.10 | 6.10 | 62.75 | 68.85 | OK | |
r-devel-linux-x86_64-fedora-clang | 1.0.10 | 158.97 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 1.0.10 | 136.59 | ERROR | |||
r-devel-windows-x86_64 | 1.0.10 | 11.00 | 97.00 | 108.00 | OK | |
r-patched-linux-x86_64 | 1.0.10 | 8.22 | 84.14 | 92.36 | OK | |
r-release-linux-x86_64 | 1.0.10 | 7.07 | 84.58 | 91.65 | OK | |
r-release-macos-arm64 | 1.0.10 | 47.00 | OK | |||
r-release-macos-x86_64 | 1.0.10 | 83.00 | OK | |||
r-release-windows-x86_64 | 1.0.10 | 9.00 | 104.00 | 113.00 | OK | |
r-oldrel-macos-arm64 | 1.0.10 | 50.00 | OK | |||
r-oldrel-macos-x86_64 | 1.0.10 | 80.00 | OK | |||
r-oldrel-windows-x86_64 | 1.0.10 | 12.00 | 118.00 | 130.00 | OK |
Version: 1.0.10
Check: examples
Result: ERROR
Running examples in ‘wally-Ex.R’ failed
The error most likely occurred in:
> ### Name: wallyPlot
> ### Title: Wally plots to assess calibration of a risk or survival
> ### prediction
> ### Aliases: wallyPlot
>
> ### ** Examples
>
>
> # Survival setting
> library(prodlim)
> library(data.table)
> library(survival)
> set.seed(180)
> d = SimSurv(180)
Error in cbind(idxM, pidxM) : cannot get data pointer of 'NULL' objects
Calls: SimSurv ... exogenous<- -> exogenous<-.lvm -> reindex -> mat.lvm -> cbind
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 1.0.10
Check: tests
Result: ERROR
Running ‘Reproduce-Fig-paper.R’ [17s/18s]
Running ‘test-wally-function.R’
Running the tests in ‘tests/test-wally-function.R’ failed.
Complete output:
>
> # {{{ load packages
> library(survival)
> library(data.table)
> library(testthat)
> library(prodlim)
> library(riskRegression)
riskRegression version 2023.12.21
> library(wally)
> # }}}
>
>
> # {{{ "Wally for survival weird formula and hanging"
> test_that("Wally for survival weird formula and hanging",{
+ set.seed(10)
+ d <- sampleData(138,outcome="survival")
+ setnames(d,c("time","event"),c("truc","toto"))
+ f <- coxph(Surv(truc,toto)~X6+X7,data=d,x=TRUE)
+ d$pi <- predictRisk(f,times=2,newdata=d)
+ pred <- as.matrix(d$pi,ncol=1)
+ ## matrix input
+ u <- wallyPlot(pred,
+ time=2,
+ formula=as.formula(paste("Hist(","truc",",","toto",")~1")),
+ data=d,
+ hanging=TRUE,
+ seed=5987,
+ colbox="red",
+ superuser.hide=FALSE,
+ superuser.choice=NULL,
+ q=13)
+ ## model input
+ v <- wallyPlot(f,
+ time=2,
+ formula=as.formula(paste("Hist(","truc",",","toto",")~1")),
+ data=d,
+ hanging=TRUE,
+ seed=5987,
+ colbox="red",
+ superuser.hide=FALSE,
+ superuser.choice=NULL,
+ q=13)
+ expect_equal(u,v)
+ })
── Error: Wally for survival weird formula and hanging ─────────────────────────
Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
Backtrace:
▆
1. └─riskRegression::sampleData(138, outcome = "survival")
2. ├─lava::`distribution<-`(...)
3. └─lava:::`distribution<-.lvm`(...)
4. ├─lava::`addvar<-`(`*tmp*`, value = as.formula(paste("~", variable)))
5. └─lava:::`addvar<-.lvm`(...)
6. ├─lava::`regression<-`(`*tmp*`, ..., value = value)
7. └─lava:::`regression<-.lvm`(`*tmp*`, ..., value = value)
8. └─lava::procformula(object, value, ...)
9. ├─lava::`exogenous<-`(...)
10. └─lava:::`exogenous<-.lvm`(...)
11. └─lava::reindex(x)
12. └─lava:::mat.lvm(x, res)
13. └─base::cbind(idxM, pidxM)
Error:
! Test failed
Backtrace:
▆
1. ├─testthat::test_that(...)
2. │ └─withr (local) `<fn>`()
3. └─reporter$stop_if_needed()
4. └─rlang::abort("Test failed", call = NULL)
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc