tests/testthat/test-purge.R

context("Purge")

test_that("we can purge packages from the cache", {

  renv_tests_scope("breakfast")

  renv::init()

  expect_true("breakfast" %in% basename(renv_cache_list()))
  renv::purge("breakfast")
  expect_false("breakfast" %in% basename(renv_cache_list()))

})
wnattt/renv documentation built on Dec. 23, 2021, 5:19 p.m.