Skip to contents

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 class 'OpalSession'
dsIsReady(session)

Arguments

session

OpalSession-class object.

Value

A logical indicating the readiness of the session.

Examples

if (FALSE) { # \dontrun{
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)
} # }