From a16188e81a72ac752770920c837d45b971ea829c Mon Sep 17 00:00:00 2001 From: Chris Hartgerink Date: Wed, 14 Aug 2024 11:32:19 +0200 Subject: [PATCH] Update variable name --- R/zzz.R | 2 +- tests/testthat/test-zzz.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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") })