Skip tests when functions aren't exported by a package (yet). Useful for auto-generated tests, so the tests are not active until the function has been reviewed and exported.
Usage
skip_if_not_exported(fn_name, pkg = testthat::testing_package())Arguments
- fn_name
(
character(1)) The name of the function to check.- pkg
(
character(1)) The name of the package to check. Defaults to the name of the package being tested viatestthat::testing_package(). If the package is not the package currently being tested, it must be installed on the testing system.