DSObject-class | R Documentation |
Base class for all other DataSHIELD classes (e.g., drivers, connections). This is a virtual Class: No objects may be created from it.
More generally, DataSHIELD defines a very small set of classes and generics that allows users and applications perform meta-analysis with a common interface. The virtual classes are 'DSDriver' that individual drivers extend, 'DSConnection' that represent instances of DataSHIELD-aware data repository connections, and 'DSResult' that represent the result of a DataSHIELD operation. These three classes extend the basic class of 'DSObject', which serves as the root or parent of the class hierarchy.
An implementation MUST provide methods for the following generics:
dsGetInfo
It MAY also provide methods for:
summary
Print a concise description of the
object. The default method invokes 'dsGetInfo(dsObj)' and prints
the name-value pairs one per line. Individual implementations may
tailor this appropriately.
Other DS classes:
DSConnection-class
,
DSDriver-class
,
DSResult-class
## Not run:
drv <- DSOpal::Opal()
con <- dsConnect(drv,
username = "dsuser", password = "password", url = "https://opal-demo.obiba.org")
rs <- dsAssign(con, "Project.TableA")
is(drv, "DSObject") ## True
is(con, "DSObject") ## True
is(rs, "DSObject") ## True
dsDisconnect(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.