Check R Packages or Code for T/F
Checks the specified R package or code file for occurrences of
F, and gathers the expression containing these.
This is useful as in R
F are just variables which
are set to the logicals
FALSE by default, but
are not reserved words and hence can be overwritten by the user.
Hence, one should always use
FALSE for the
checkTnF(package, dir, file, lib.loc = NULL)
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.
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
packageis not given. If used, the R code files and the examples in the documentation files are checked.
the name of a file containing R code to be checked. Used if neither
a character vector of directory names of R libraries, or
NULL. The default value of
NULLcorresponds to all libraries currently known. The specified library trees are used to search for
An object of class
"checkTnF" which is a list containing, for
each file where occurrences of
F were found, a list
with the expressions containing these occurrences. The names of the
list are the corresponding file names.
There is a