Skip to content

Commit

Permalink
Avoid warning when trying to load veteran with data(veteran) (#189)
Browse files Browse the repository at this point in the history
It seems to be loaded by survival automatically. Just to be safe, we now suggest a minimum of the current CRAN version of survival in case this was a recent change.
  • Loading branch information
DavisVaughan authored Mar 18, 2021
1 parent 47aa2ae commit 2bf49cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Suggests:
rpart,
rsample,
RSpectra,
survival,
survival (>= 3.2-10),
testthat (>= 2.1.0),
TH.data,
xgboost (>= 1.3.2.1)
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-ranger.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ test_that("ranger + survival option works", {
skip_if_not_installed("survival")
library(ranger)
library(survival)
data(veteran)
rg.veteran <- ranger(Surv(time, status) ~ ., data = veteran)
x <- butcher(rg.veteran)
expect_equal(timepoints(x),
Expand Down

0 comments on commit 2bf49cd

Please sign in to comment.