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"))
})
rstudio/renv documentation built on July 8, 2024, 5:48 a.m.