package
a character string naming an installed package. If
given, the installed R code and the examples in the documentation
files of the package are checked. R code installed as an image file
cannot be checked.
dir
a character string specifying the path to a package's root
source directory. This must contain the subdirectory R (for
R code), and should also contain man (for documentation).
Only used if package
is not given. If used, the R code files
and the examples in the documentation files are checked.