Skip to contents

Verify Opal resource exist and can be accessible for performing DataSHIELD operations.

Usage

# S4 method for class 'OpalConnection'
dsHasResource(conn, resource)

Arguments

conn

OpalConnection-class class object.

resource

The fully qualified name of the resource.

Value

TRUE if the resource exists.

Examples

if (FALSE) { # \dontrun{
con <- dbConnect(DSOpal::Opal(), "server1",
  "administrator", "password", "https://opal-demo.obiba.org")
dsHasResource(con, "test.CNSIM")
dsDisconnect(con)
} # }