tests/testthat/test-deactivate.R

test_that("deactivate(clean = TRUE) removes all files", {

  renv_tests_scope()
  init()

  deactivate(clean = TRUE)
  expect_false(file.exists("renv.lock"))
  expect_false(file.exists("renv"))
  expect_false(file.exists(".Rprofile"))
})

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.