diff --git a/R/zzz.R b/R/zzz.R index be8c43e..bdb6124 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -1,3 +1,3 @@ .onLoad <- function(libname, pkgname) { - lost_tags_action(Sys.getenv("LINELIST_LOST_ACTION", "warning"), quiet = TRUE) + lost_tags_action(Sys.getenv("DATATAGR_LOST_ACTION", "warning"), quiet = TRUE) } diff --git a/tests/testthat/test-zzz.R b/tests/testthat/test-zzz.R index af24ae2..f0f26d7 100644 --- a/tests/testthat/test-zzz.R +++ b/tests/testthat/test-zzz.R @@ -18,7 +18,7 @@ test_that("Environment variable is used for initial `lost_tags_action`", { library(datatagr) get_lost_tags_action() }, - env = c(LINELIST_LOST_ACTION = "error") + env = c(DATATAGR_LOST_ACTION = "error") ) expect_identical(res, "error") })