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.
Arguments
- session
An object inheriting from
DSSession-class.
See also
Other DSSession generics:
DSSession-class,
dsIsReady()
Examples
if (FALSE) { # \dontrun{
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)
} # }