| 1 |
|
| 2 |
test_that("older binaries are installed from MRAN on Windows / macOS", { |
| 3 |
skip_on_cran() |
| 4 |
skip_on_os("linux") |
| 5 |
|
| 6 |
renv_tests_scope() |
| 7 |
renv_scope_options(pkgType = "binary") |
| 8 |
|
| 9 |
version <- getRversion()[1, 1:2] |
| 10 |
if (version != "3.5") |
| 11 |
skip("only run on R 3.5") |
| 12 |
|
| 13 |
install("[email protected]") |
| 14 |
|
| 15 |
path <- find.package("digest", lib.loc = .libPaths()) |
| 16 |
desc <- renv_description_read(path) |
| 17 |
|
| 18 |
expect_identical(desc$Package, "digest") |
| 19 |
expect_identical(desc$Version, "0.6.17") |
| 20 |
|
| 21 |
}) |