inlinedocs (version 2019.12.5)

test.file: test file

Description

Check an R code file with inlinedocs to see if the extract.docs.file parser accurately extracts all the code inside! The code file should contain a variable .result which is the documentation list that you should get when you apply extract.docs.file to the file. We check for identity of elements of elements of the list, so the order of elements should not matter, and thus this should be a good robust unit test.

Usage

test.file(f, CRAN.checks = TRUE, 
    verbose = FALSE)

Arguments

f

File name of R code file with inlinedocs to parse and check.

CRAN.checks

try to make a package and run CRAN checks?

verbose

Show output?

See Also

save.test.result