Learn R Programming

DSOpal (version 1.5.0)

dsSession,OpalConnection-method: Create a remote R session

Description

Create a remote R session if none exists. If a remote R session already exists, it will be reused. Returns an object of class OpalSession-class representing the remote R session accessible through this connection.

Usage

# S4 method for OpalConnection
dsSession(conn, async = TRUE)

Value

An object of class OpalSession-class representing the remote R session.

Arguments

conn

An object that inherits from OpalConnection-class.

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 <- dsConnect(DSOpal::Opal(), "server1",
  username = "dsuser", password = "password", url = "https://opal-demo.obiba.org")
session <- dsSession(con, async=TRUE)
dsDisconnect(con)
}

Run the code above in your browser using DataLab