tests/testthat/test-scriptpath.R

context("scriptpath")

# do we get an error from getScriptPath?
test_that("scriptpath error", {
  expect_error(getScriptPath(), regexp = NULL)
})

Try the envDocument package in your browser

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

envDocument documentation built on Sept. 11, 2025, 9:08 a.m.