Learn R Programming

DSI (version 1.7.0)

dsHasResource: Check remote resource exists

Description

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

See Also

Other DSConnection generics: DSConnection-class, dsAggregate(), dsAssignExpr(), dsAssignResource(), dsAssignTable(), dsDisconnect(), dsGetInfo(), dsHasTable(), dsIsAsync(), dsKeepAlive(), dsListMethods(), dsListPackages(), dsListProfiles(), dsListResources(), dsListSymbols(), dsListTables(), dsListWorkspaces(), dsRestoreWorkspace(), dsRmSymbol(), dsRmWorkspace(), dsSaveWorkspace()

Examples

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

Run the code above in your browser using DataLab