Simple wrapper to the checkUsage()
function of the codetools package
that calls checkUsage()
on all objects contained in a source file.
lint(file, text = NULL, filename = NULL, encoding = getOption("encoding"),
type = c("data.frame", "flat", "rjson"), sep = "+++")
file to check.
the R source code (as text) to lint; used only if file
is
not provided.
the filename to flag returned errors.
encoding to assume for the file.
the type of output to produce.
in case of flat output, what is the indicator to use as field separator ?
A data frame, text output or rjson object of the errors/problems in the file or the R code in 'text' is returned.