Learn R Programming

DSOpal (version 1.3.1)

dsAssignExpr,OpalConnection-method: Assign the result of an expression

Description

Assign a result of the execution of an expression in the DataSHIELD R session.

Usage

# S4 method for OpalConnection
dsAssignExpr(conn, symbol, expr, async = TRUE)

Value

A OpalResult-class object.

Arguments

conn

OpalConnection-class object.

symbol

Name of the R symbol.

expr

A R expression with allowed assign functions calls.

async

Whether the result of the call should be retrieved asynchronously. When TRUE (default) the calls are parallelized over the connections, when the connection supports that feature, with an extra overhead of requests.

Examples

Run this code
if (FALSE) {
con <- dbConnect(DSOpal::Opal(), "server1",
  "username", "password", "https://opal.example.org")
dsAssignExpr(con, "C", as.symbol("c(1, 2, 3)"))
dsDisconnect(con)
}

Run the code above in your browser using DataLab