Learn R Programming

DSI (version 1.8.0)

dsIsReady: Get whether the remote R session is up and running

Description

Get whether the remote R session is up and running, ready to accept R commands. The primary use of this function is to know whether the session is ready after it has been created in an asynchronous way.

Usage

dsIsReady(session)

Value

A logical

Arguments

session

An object inheriting from DSSession-class.

See Also

Other DSSession generics: DSSession-class, dsStateMessage()

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(".")
}
dsDisconnect(con)
}

Run the code above in your browser using DataLab