Learn R Programming

svMisc (version 0.9-60)

Parse-deprecated: Parse a character string as if it was a command entered at the command line

Description

Parse R instructions provided as a string and return the expression if it is correct, or an object of class 'try-error' if it is an incorrect code, or NA if the (last) instruction is incomplete.

Usage

Parse(text)

Arguments

text
the character string vector to parse into an R expression.

Value

  • Returns an expression with the parsed code or NA if the last instruction is correct but incomplete, or an object of class'try-error' with the error message if the code is incorrect.

See Also

parseText, captureAll, sourceClipboard