Runs the examples, vignettes and possibly tests associated with the package and captures the usage of package's functions. Creates tests from the captured information, filters it according to the already existing tests and if any new tests are found, adds them to package's tests.
1 2 | gen_from_package(package.dir = ".", include.tests = FALSE, timed = FALSE,
filter = TRUE, build = TRUE, output, verbose = testr_options("verbose"))
|
package.dir |
Name/path to the package, uses devtools notation. |
include.tests |
If TRUE, captures also execution of package's tests. |
timed |
TRUE if the tests result depends on time, in which case the current date & time will be appended to the output_dir. |
filter |
TRUE if generated tests should be filteres so that only those adding to a coverage will be used |
build |
if to build package before. Default |
output |
If used, specifies where should the tests be unfiltered tests be generated (if not specified, they will use a temp directory and clean it afterwards) |
verbose |
Prints additional information. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.