diff --git a/tests/testthat/test-logLik.R b/tests/testthat/test-logLik.R index 8d13cc9a3..bb90de082 100644 --- a/tests/testthat/test-logLik.R +++ b/tests/testthat/test-logLik.R @@ -2,8 +2,7 @@ test_that("logLik", { skip_if_not_installed("plm") skip_if_not_installed("withr") - expr <- getOption("expressions") - options(expressions = 25) + withr::local_options(list(expressions = 25)) set.seed(1) nnn <- 100 ddta <- data.frame(