| dsIsReady | R Documentation |
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.
dsIsReady(session)
session |
An object inheriting from |
A logical
Other DSSession generics:
DSSession-class,
dsStateMessage()
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.