View source: R/RtestingHelpers.R
testmeEnvInit | R Documentation |
Create package internal environment to hold global state. Calling this function is not required under normal operation. This function is called internally, when whole files or directories are tested. It needs to be called when single testing functions are to be evaluated in an ad-hoc fashion (see vignette).
testmeEnvInit(
expectationsFolder = Sprintf("%{d}s/RtestsExpectations", d = tempdir()),
logger = LogAt1
)
expectationsFolder |
Path to folder to store test expectations in. Defaults to the |
logger |
Function used to print messages. Defaults to |
d |
Base folder holding tests. Defauts to |
Returns the internal environment used by testme
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.