Test package examplesSource:
These helper functions make it easier to test the examples in a package. Each example counts as one test, and it succeeds if the code runs without an error. Generally, this is redundant with R CMD check, and is not recommended in routine practice.
test_examples(path = "../..") test_rd(rd, title = attr(rd, "Rdfile")) test_example(path, title = path)
test_examples(), path to directory containing Rd files. For
test_example(), path to a single Rd file. Remember the working directory for tests is
A parsed Rd object, obtained from
Test title to use