View source: R/validate-tests.R
setup_package_env | R Documentation |
These are all things that were copied out of internal functions called by testthat::test_check to set up the package environment. They are necessary because testthat::test_dir does NOT do this, which causes some tests to fail. Specifically, this code came mostly from testthat:::test_package_dir and testthat:::test_pkg_env and some from test_check itself.
setup_package_env(package, test_path)
package |
the package name |
test_path |
path to folder with tests in it |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.