Debian Codegraph @

tests/testthat/test-deactivate.R

raw
1 test_that("deactivate(clean = TRUE) removes all files", {
2
3 renv_tests_scope()
4 init()
5
6 deactivate(clean = TRUE)
7 expect_false(file.exists("renv.lock"))
8 expect_false(file.exists("renv"))
9 expect_false(file.exists(".Rprofile"))
10 })