tests/testthat/test-purge.R

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

  renv_tests_scope("breakfast")

  init()

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

})

Try the renv package in your browser

Any scripts or data that you put into this service are public.

renv documentation built on Sept. 19, 2023, 9:06 a.m.