tests/testthat/test-sitrep.R

test_that("test sitrep works", {
  Sys.setenv("TEST_ENV_VAR"="set")
  expect_true(sitrep(silent = TRUE, path = "./test-conf.envstat"))
  Sys.unsetenv("TEST_ENV_VAR")
})

Try the envstat package in your browser

Any scripts or data that you put into this service are public.

envstat documentation built on June 14, 2022, 5:06 p.m.