parse: Parse

ParseR Documentation

Parse

Description

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

Usage

  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 June 26, 2022, 2:21 p.m.