Learn R Programming

DSOpal (version 1.5.0)

dsStateMessage,OpalSession-method: Get the remote R session state message

Description

Explain the remote R session state as a human-readable message.

Usage

# S4 method for OpalSession
dsStateMessage(session)

Value

A character string

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(dsStateMessage(session), "\n")
}
dsDisconnect(con)
}

Run the code above in your browser using DataLab