Description Usage Arguments Value Author(s) References See Also Examples
Thes functions ares used to evaluate an
R command given as a string.
XSLParseEval
is used as the implementation of the
XSL function r:eval()
.
It parses the string, evaluates the resulting
expression and converts the result back to XSL,
if desired.
XSLNULLParseEval
discards the return value from
evaluating the command. This avoids converting it to an XSL object.
XSLParseEvalWithOutput
uses capture.output
to return the output from evaluating the command.
It ignores the return value and returns a single string
containing the output.
1 2 3 |
cmd |
the string giving the S command or expression. |
className |
the class to assign to the result of the expression, if it has none. This is used in conjunction with |
asXML |
a logical value indicating whether to attempt to
explicitly convert
the result of evaluating the expression to XML using the |
name |
if specified, the result of the expression is assigned to the R session's global environment using this value as its name. This allows the result to be used in subsequent computations. |
env |
the environment in which the evaluation of the parsed expression is performed. |
The value of parsing and evaluating the S expression
given by cmd
, optionally converted to an S object
giving the XML representation if asXML
is TRUE
.
Duncan Temple Lang
http://www.omegahat.org/Sxslt, http://www.omegahat.org/SXalan, http://www.w3.org/Style/XSL
eval
,
parse
,
the XML
package for creating C-level XML nodes.
1 2 3 | XSLParseEval("rnorm(10)")
XSLParseEval("rnorm(10)", className = "Array")
XSLParseEval("rnorm(10)", className = "Array", name="me")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.