Learn R Programming

DSOpal (version 1.5.0)

dsIsReady,OpalSession-method: Get whether the remote R session is up and running

Description

Get the state of the remote R session and return TRUE if the state is RUNNING. Always TRUE for synchronous operations.

Usage

# S4 method for OpalSession
dsIsReady(session)

Value

A logical indicating the readiness of the session.

Arguments

session

OpalSession-class object.

Examples

Run this code
if (FALSE) {
con <- dbConnect(DSOpal::Opal(), "server1",
  "administrator", "password", "https://opal-demo.obiba.org")
session <- dsSession(con, async = TRUE)
ready <- dsIsReady(session)
while (!ready) {
  Sys.sleep(1)
  ready <- dsIsReady(session)
  cat(".")
}
dsDisconnect(con)
}

Run the code above in your browser using DataLab