tests/testthat/test_utils.R

test_that("utils", {
  testthat::expect_error(getEnv("not-exists", fail.on.empty = TRUE, refresh.env = TRUE))
  loggerSetupFile(tempfile())
  testthat::expect_true(nchar(getHost()) > 0)
})

Try the ElectionsLATAM package in your browser

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

ElectionsLATAM documentation built on April 19, 2022, 9:05 a.m.