source_file | R Documentation |
These are used by test_dir()
and friends
source_file(
path,
env = test_env(),
chdir = TRUE,
desc = NULL,
wrap = TRUE,
error_call = caller_env()
)
source_dir(
path,
pattern = "\\.[rR]$",
env = test_env(),
chdir = TRUE,
wrap = TRUE
)
source_test_helpers(path = "tests/testthat", env = test_env())
source_test_setup(path = "tests/testthat", env = test_env())
source_test_teardown(path = "tests/testthat", env = test_env())
path |
Path to files. |
env |
Environment in which to evaluate code. |
chdir |
Change working directory to |
desc |
If not- |
wrap |
Automatically wrap all code within |
pattern |
Regular expression used to filter files. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.