Running ‘testthat.R’ [42s/57s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(casebase)
  See example usage at http://sahirbhatnagar.com/casebase/
  > library(data.table)
  > library(survival)
  > 
  > test_check("casebase")
  ── Warning (test-absRiskComp.R:163:5): should output probabilities with data tab
  Some probabilities are out of range. Consider increasing nsamp or using numerical integration
  
  ── FAILURE (test-absRiskComp.R:170:5): should output probabilities with data tab
  all(absRiskMC <= 1) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Skip (test-gbm.R:94:5): should compute risk when time and newdata aren't prov
  Reason: On CRAN
  
  'data.frame':	686 obs. of  12 variables:
   $ horTh   : Factor w/ 2 levels "no","yes": 1 2 2 2 1 1 2 1 1 1 ...
   $ age     : int  70 56 58 59 73 32 59 65 80 66 ...
   $ menostat: Factor w/ 2 levels "Pre","Post": 2 2 2 2 2 1 2 2 2 2 ...
   $ tsize   : int  21 12 35 17 35 57 8 16 39 18 ...
   $ tgrade  : Ord.factor w/ 3 levels "I"<"II"<"III": 2 2 2 2 2 3 2 2 2 2 ...
   $ pnodes  : int  3 7 9 4 1 24 2 1 30 7 ...
   $ progrec : int  48 61 52 60 26 0 181 192 0 0 ...
   $ estrec  : int  66 77 271 29 65 13 0 25 59 3 ...
   $ time    : int  1814 2018 712 1807 772 448 2172 2161 471 2014 ...
   $ cens    : int  1 1 1 1 1 1 0 0 1 0 ...
   $ hormon  : num  0 1 1 1 0 0 1 0 0 0 ...
   $ meno    : num  1 1 1 1 1 0 1 1 1 1 ...
  Conditions used in construction of plot
  trt: 0 / 1
  offset: 0
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (1)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  Warning (test-absRiskComp.R:163:5): should output probabilities with data tables - two covariate profile
  FAILURE (test-absRiskComp.R:170:5): should output probabilities with data tables - two covariate profile
  
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 251 ]
  Error: Test failures
  Execution halted