testExamples {berryFunctions} | R Documentation |
Test examples in a package
Description
Test all examples in a package
Usage
testExamples(
path = packagePath("."),
commentDontrun = FALSE,
selection = NULL,
logfolder = "ExampleTestLogs",
elogfile = "errors.txt",
wlogfile = "warnings.txt",
tlogfile = "times.txt",
plotfile = "plots.pdf",
tellcurrentfile = TRUE,
telldocument = TRUE,
...
)
Arguments
path |
Path to package. For internal function |
commentDontrun |
Logical. Should \dontrun sections be excluded? DEFAULT: FALSE |
selection |
Optional: selection of files, e.g 1:10. DEFAULT: NULL |
logfolder |
Directory where to store the logfiles. Created if not existing. DEFAULT: "ExampleTestLogs" |
elogfile |
File to log errors in. (Appended to existing text). DEFAULT: "errors.txt" |
wlogfile |
File to log warnings and messages in. (Appended to existing text). DEFAULT: "warnings.txt" |
tlogfile |
File in which to write computing times. DEFAULT: "times.txt" |
plotfile |
File to log warnings and messages in. (Appended to existing text). DEFAULT: "plots.pdf" |
tellcurrentfile |
Logical: At the beginning of each file, message the name and current time in the console? |
telldocument |
Message reminder to run |
... |
Further arguments passed to internal function |
Value
Logical indicating successful tests
Author(s)
Berry Boessenkool, berry-b@gmx.de, Mar 2019
See Also
The evaluate package
Examples
# testExamples(selection=1:10)