lint: Look for error in a R code file

Description Usage Arguments Value Author(s) See Also

Description

Simple wrapper to the checkUsage() function of the codetools package that calls checkUsage() on all objects contained in a source file.

Usage

1
2
lint(file, text = NULL, filename = NULL, encoding = getOption("encoding"),
    type = c("data.frame", "flat", "rjson"), sep = "+++")

Arguments

file

file to check.

text

the R source code (as text) to lint; used only if file is not provided.

filename

the filename to flag returned errors.

encoding

encoding to assume for the file.

type

the type of output to produce.

sep

in case of flat output, what is the indicator to use as field separator ?

Value

A data frame, text output or rjson object of the errors/problems in the file or the R code in 'text' is returned.

Author(s)

Romain Francois <francoisromain@free.fr> & Philippe Grosjean <phgrosjean@sciviews.org>

See Also

checkUsage, lintDescription, lintNamespace


SciViews/svTools documentation built on May 5, 2019, 12:29 p.m.