testExamples | R Documentation |
Test all examples in a package
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,
...
)
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 |
Logical indicating successful tests
Berry Boessenkool, berry-b@gmx.de, Mar 2019
The evaluate package
# testExamples(selection=1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.