opalr (version 1.4.1)

opal.assign.resource: Resource assignment

Description

Assign a ResourceClient object to a R symbol in the current R session.

Usage

opal.assign.resource(opal, symbol, value, async = FALSE)

Arguments

opal

Opal object or list of opal objects.

symbol

Name of the R symbol.

value

The fully qualified name of a resource in Opal.

async

R script is executed asynchronously within the session (default is FALSE). If TRUE, the value returned is the ID of the command to look for (from Opal 2.1).

See Also

Other assignment functions: opal.assign.data(), opal.assign.script(), opal.assign.table.tibble(), opal.assign.table(), opal.assign()

Examples

Run this code
# NOT RUN {
o <- opal.login('administrator','password','https://opal-demo.obiba.org')
# assign a resource and make some operation on it
opal.assign.resource(o, "D", "datashield.cram1")
opal.execute(o, "class(D)")
opal.logout(o)
# }

Run the code above in your browser using DataLab