Learn R Programming

rockr (version 1.0.0)

rockr.eval.source: Evaluate a R file script

Description

Upload a R file script and execute it in the remote R session with source().

Usage

rockr.eval.source(conn, path, json = FALSE, async = FALSE)

Arguments

conn

A rockr connection object.

path

Path to the R file 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()

Examples

Run this code
# NOT RUN {
conn <- rockr.connect(username='user', password='password',
                      url='https://rocker-demo.obiba.org')
rockr.open(conn)
rockr.eval.source(conn, "myscript.R")
rockr.close(conn)
# }

Run the code above in your browser using DataLab