Learn R Programming

DSI (version 1.8.0)

dsStateMessage: Get the state of the remote R session

Description

Get a human-readable message that informs about the state of the remote R session. The primary use of this function is to inform the user about the session state process after it has been created in an asynchronous way.

Usage

dsStateMessage(session)

Value

A character string

Arguments

session

An object inheriting from DSSession-class.

See Also

Other DSSession generics: DSSession-class, dsIsReady()

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)
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