Skip to content

Commit

Permalink
Fix #562
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Dec 16, 2018
1 parent 60a4462 commit ae4f4b8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
9 changes: 0 additions & 9 deletions R/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file removed inst/testing/built_mtcars_example_v6.2.1.zip
Binary file not shown.
30 changes: 0 additions & 30 deletions tests/testthat/test-deprecate.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ae4f4b8

Please sign in to comment.