This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/parse.html
parse {base}R Documentation

Parse Expressions

Description

parse returns the parsed but unevaluated expressions in a list. Each element of the list is of mode expression.

Usage

parse(file = "", n = NULL, text = NULL, prompt = NULL, white = FALSE)

Arguments

file

the name of a file to read the expressions from. If the file is "" and text is missing or NULL then input is taken from the keyboard.

n

the number of statements to parse. If n is negative the file is parsed in its entirety. When parsing takes place from the keyboard, n is always 1.

text

text to parse, quoted.

prompt

the prompt to print when parsing from the keyboard

white

if TRUE then any white space separates expressions otherwise only newlines or semicolons do.

See Also

scan, source, eval, deparse.

Examples

# parse 3 statements from the file "xyz.Rdmped"
parse(file = "xyz.Rdmped", n = 3)

[Package base version 0.60 ]