parse: Parse

Description Usage Arguments Details Author(s)

Description

Parse R code from a package, a file or a character vector.

Usage

1
2
3
  ParsePackage(package, guess.encoding=FALSE, recursive=FALSE)
  ParseFile(filename, guess.encoding=FALSE)
  ParseText(text, name=NULL)

Arguments

package

Root directory of the source package.

guess.encoding

If TRUE try to guess file encoding. This might be useless and will drastically slow down the execution.

recursive

If TRUE also parse code found in subdirectories of package directory "R"

filename

Name of the file to parse.

text

Character vector to parse.

name

Name to give "srcfile" attribute of the parsed expression.

Details

Returns an expression object representing the package, the file or the character vector parsed.

Author(s)

Maëlick Claes <himself@maelick.net>


ecos-umons/sourceR documentation built on May 15, 2019, 10:07 p.m.