devtools (version 0.6)

run_examples: Run all examples in a package.

Description

One of the most frustrating parts of `R CMD check` is getting all of your examples to pass - whenever one fails you need to fix the problem and then restart the whole process. This function makes it a little easier by making it possible to run all examples from an R function.

Usage

run_examples(pkg = NULL, start = NULL, strict = TRUE)

Arguments

pkg
package description, can be path or package name. See as.package for more information
start
name of Rd file to start with - if omitted, will start with the (lexicographically) first file. This is useful if you have a lot of examples and don't want to rerun them every time when you fix a problem.
strict
if TRUE, the package is first installed, and then each example is run in a clean R environment somewhat mimicing what R CMD check does. Since this involves installing the package you should probably be in