lint {svTools}R Documentation

Look for error in a R code file

Description

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

Usage

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


[Package svTools version 0.9-5 Index]