From 2bf49cd9b90de2995450b67d6b9c70f5f9b5ff80 Mon Sep 17 00:00:00 2001 From: Davis Vaughan Date: Thu, 18 Mar 2021 14:48:14 -0400 Subject: [PATCH] Avoid warning when trying to load veteran with `data(veteran)` (#189) 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. --- DESCRIPTION | 2 +- tests/testthat/test-ranger.R | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 74344adf..aeccb15e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -69,7 +69,7 @@ Suggests: rpart, rsample, RSpectra, - survival, + survival (>= 3.2-10), testthat (>= 2.1.0), TH.data, xgboost (>= 1.3.2.1) diff --git a/tests/testthat/test-ranger.R b/tests/testthat/test-ranger.R index 9f85d3e1..7fb49c78 100644 --- a/tests/testthat/test-ranger.R +++ b/tests/testthat/test-ranger.R @@ -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),