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,
...
)
Logical indicating successful tests
Path to package. For internal function testExample
,
path to a single Rd file.
DEFAULT: packagePath(".")
Logical. Should \dontrun sections be excluded? DEFAULT: FALSE
Optional: selection of files, e.g 1:10. DEFAULT: NULL
Directory where to store the logfiles. Created if not existing. DEFAULT: "ExampleTestLogs"
File to log errors in. (Appended to existing text). DEFAULT: "errors.txt"
File to log warnings and messages in. (Appended to existing text). DEFAULT: "warnings.txt"
File in which to write computing times. DEFAULT: "times.txt"
File to log warnings and messages in. (Appended to existing text). DEFAULT: "plots.pdf"
Logical: At the beginning of each file, message the name and current time in the console?
Message reminder to run devtools::document()
?
DEFAULT: TRUE
Further arguments passed to internal function testExample
and from there to tools::Rd2ex
Berry Boessenkool, berry-b@gmx.de, Mar 2019
The evaluate package
# testExamples(selection=1:10)
Run the code above in your browser using DataLab