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 Aug. 20, 2019, 1:03 a.m.