Get the data value corresponding to the variable with the symbol name from the DSLiteServer associated
to the DSConnection-class
object(s). Can be useful when developping a DataSHIELD package.
getDSLiteData(conns, symbol)
DSConnection-class
object or a list of DSConnection-class
s.
Symbol name identifying the variable in the DSLiteServer's "server-side" environment(s).
The data value or a list of values depending on the connections parameter. The value is NA when the connection object
is not of class DSLiteConnection
.
if (FALSE) { # \dontrun{
# DataSHIELD login
logindata <- setupCNSIMTest()
conns <- datashield.login(logindata, assign=TRUE)
# retrieve symbol D value from each DataSHIELD connections
getDSLiteData(conns, "D")
# retrieve symbol D value from a specific DataSHIELD connection
getDSLiteData(conns$sim1, "D")
} # }