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 May 29, 2024, 9:21 a.m.