opalr (version 1.4.1)

opal.execute: Execute a R script

Description

Execute a R script in the remote R session.

Usage

opal.execute(opal, script, async = FALSE)

Arguments

opal

Opal object or list of opal objects.

script

R script to execute.

async

R script is executed asynchronously within the session (default is FALSE). If TRUE, the value returned is the ID of the command to look for (from Opal 2.1).

See Also

Other execution functions: opal.execute.source(), opal.load_package(), opal.unload_package()

Examples

Run this code
# NOT RUN {
o <- opal.login('administrator','password','https://opal-demo.obiba.org')
opal.execute(o, "x <- 'foo'")
opal.execute(o, "ls()")
opal.logout(o)
# }

Run the code above in your browser using DataCamp Workspace