Skip to contents

Check if a remote R session exists (not necessarily running and ready to accept R commands submissions).

Usage

# S4 method for class 'OpalConnection'
dsHasSession(conn)

Arguments

conn

An object that inherits from OpalConnection-class.

Value

A logical indicating if a remote R session exists accessible through this connection.

Examples

if (FALSE) { # \dontrun{
con <- dsConnect(DSOpal::Opal(), "server1",
  username = "administrator", password = "password", url = "https://opal-demo.obiba.org")
dsHasSession(con)
dsDisconnect(con)
} # }