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

# S4 method for 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) {
con <- dbConnect(DSOpal::Opal(), "server1",
  "username", "password", "https://opal.example.org")
dsHasResource(con, "test.CNSIM")
dsDisconnect(con)
}