View source: R/test_functions.R
with_safe_package_tester | R Documentation |
Will reset the .libPaths, the 'R_MV_LIBRARY_LOCATION' environment variable to their old values
and will unload 'package.a' till 'package.f' when finishing the execution.
with_safe_package_tester(expr, also_clean_install_dir = FALSE)
expr |
The expression that needs to be evaluated in this protected environment. |
also_clean_install_dir |
If |
Before execution it will set the following values:
.libPaths - will be set to .Library only.
R_MV_LIBRARY_LOCATION
- will contain '../test_library/' or 'tests/test_library/' depending on the current directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.