evalShell | R Documentation |
This function is used to evaluate shell commands,
passed to system
.
It is passed an XML node which contains the code
and also has attributes that govern how it is evaluated
and how the results are presented/displayed.
This function is exported so it is available to XSL code.
evalShell(node)
node |
the XML node containing the shell commands and attributes that control how it is evaluated and how the results are returned. |
A string (i.e. character vector of length 1).
Duncan Temple Lang
dynDoc
system
library(XML)
node = newXMLNode("sh:code", "ls",
attrs = c(numLines = "10"),
namespaceDefinitions = c("sh" = "http://www.shell.org"))
evalShell(node)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.