Skip to contents

Check if a remote resource reference exists in the data repository. Returns a logical indicating the existence of a remote resource accessible through this connection.

Usage

dsHasResource(conn, resource)

Arguments

conn

An object that inherits from DSConnection-class.

resource

the resource fully qualified name

Value

A logical indicating if the resource exists.

Examples

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