Learn R Programming

opalr (version 3.5.1)

opal.session_running: Check if the R session is running

Description

Check if the remote R session is running and ready to receive R commands. Fails if the session does not exist.

Usage

opal.session_running(opal)

Value

A logical value.

Arguments

opal

Opal object.

See Also

Other session functions: opal.session(), opal.session_delete(), opal.session_events(), opal.session_exists(), opal.session_get()

Examples

Run this code
if (FALSE) {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
opal.session(o, wait = FALSE)
ready <- opal.session_running(o)
while(!ready) {
  Sys.sleep(1)
  ready <- opal.session_running(o)
  cat(".")
}
opal.session_get(o)
opal.logout(o)
}

Run the code above in your browser using DataLab