diff --git a/R/test.R b/R/test.R index e1c84308c..962ac675c 100644 --- a/R/test.R +++ b/R/test.R @@ -124,15 +124,6 @@ write_v4.3.0_project <- function() { # nolint unzip(zip, exdir = ".", setTimes = TRUE) } -write_v6.2.1_project <- function() { # nolint - zip <- system.file( - file.path("testing", "built_mtcars_example_v6.2.1.zip"), - package = "drake", - mustWork = TRUE - ) - unzip(zip, exdir = ".", setTimes = TRUE) -} - # Some installations of R require the && and || operators # to return a result of length 1. # For example, `nzchar(letters) && length(letters)` fails on diff --git a/inst/testing/built_mtcars_example_v6.2.1.zip b/inst/testing/built_mtcars_example_v6.2.1.zip deleted file mode 100644 index 48dcd8825..000000000 Binary files a/inst/testing/built_mtcars_example_v6.2.1.zip and /dev/null differ diff --git a/tests/testthat/test-deprecate.R b/tests/testthat/test-deprecate.R index 7324f73e1..d4b8e81ca 100644 --- a/tests/testthat/test-deprecate.R +++ b/tests/testthat/test-deprecate.R @@ -259,36 +259,6 @@ test_with_dir("force with a non-back-compatible cache", { expect_silent(tmp <- recover_cache()) }) -test_with_dir("v6.2.1 project is still up to date", { - skip_on_cran() # CRAN gets whitelist tests only (check time limits). - skip_if_not_installed("tibble") - write_v6.2.1_project() # nolint - report_md_hash <- readRDS( - file.path(".drake", "data", "983396f9689f587b.rds") - ) - expect_equal(nchar(report_md_hash), 64L) - plan <- read_drake_plan() - random_rows <- function(data, n) { - data[sample.int(n = nrow(data), size = n, replace = TRUE), ] - } - simulate <- function(n) { - data <- random_rows(data = mtcars, n = n) - data.frame( - x = data$wt, - y = data$mpg - ) - } - reg1 <- function(d) { - lm(y ~ + x, data = d) - } - reg2 <- function(d) { - d$x2 <- d$x ^ 2 - lm(y ~ x2, data = d) - } - config <- make(plan) - expect_equal(justbuilt(config), character(0)) -}) - test_with_dir("deprecate the `force` argument", { expect_warning(tmp <- get_cache(force = TRUE), regexp = "deprecated") expect_warning(tmp <- this_cache(force = TRUE), regexp = "deprecated")