rockr.eval {rockr} | R Documentation |
Evaluate a R script
Description
Execute a R script in the remote R session.
Usage
rockr.eval(conn, script, json = FALSE, async = FALSE)
Arguments
conn |
A rockr connection object. |
script |
R script to execute. |
json |
Response is in JSON format or an object serialized by R. Default is FALSE. |
async |
R script is executed asynchronously within the session (default is FALSE). If TRUE, the value returned is the command object to look for. |
Value
The unserialized result object.
See Also
Other evaluation functions:
rockr.eval.source()
Examples
## Not run:
conn <- rockr.connect(username='user', password='password',
url='https://rocker-demo.obiba.org')
rockr.open(conn)
rockr.eval(conn, "x <- 'foo'")
rockr.eval(conn, "ls()")
rockr.close(conn)
## End(Not run)
[Package rockr version 1.0.0 Index]