diff --git a/tests/testthat/helper-state.R b/tests/testthat/helper-state.R index 2d2a9b7ef..fbec034f3 100644 --- a/tests/testthat/helper-state.R +++ b/tests/testthat/helper-state.R @@ -6,9 +6,6 @@ testthat::set_state_inspector(function() { envvars = Sys.getenv(), libpaths = .libPaths(), locale = Sys.getlocale(), - # sometimes a dependency might add a custom option, so we need to - # make sure we don't fail because of them - options = options()[names(.Options)], packages = .packages(all.available = TRUE), NULL ) diff --git a/tests/testthat/test-absolute_path_linter.R b/tests/testthat/test-absolute_path_linter.R index aa8d66f9d..6e8805b14 100644 --- a/tests/testthat/test-absolute_path_linter.R +++ b/tests/testthat/test-absolute_path_linter.R @@ -1,6 +1,5 @@ # styler: off test_that("is_root_path", { - options(width = 150) Sys.setenv("NOT_CRAN" = "false") f <- lintr:::is_root_path