setup_package_env: Helper for setting up package environment for testing

View source: R/validate-tests.R

setup_package_envR Documentation

Helper for setting up package environment for testing

Description

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.

Usage

setup_package_env(package, test_path)

Arguments

package

the package name

test_path

path to folder with tests in it


metrumresearchgroup/mrgvalprep documentation built on Dec. 10, 2022, 3:17 a.m.