powered by
Assign a Opal resource in the DataSHIELD R session.
# S4 method for OpalConnection dsAssignResource(conn, symbol, resource, async = TRUE)
A OpalResult-class object.
OpalResult-class
OpalConnection-class object.
OpalConnection-class
Name of the R symbol.
Fully qualified name of a resource in Opal.
Whether the result of the call should be retrieved asynchronously. When TRUE (default) the calls are parallelized over the connections, when the connection supports that feature, with an extra overhead of requests.
if (FALSE) { con <- dbConnect(DSOpal::Opal(), "server1", "username", "password", "https://opal.example.org") dsAssignResource(con, "D", "test.CNSIM") dsDisconnect(con) }
Run the code above in your browser using DataLab