if (FALSE) {
# assign a list of variables from table CNSIM1
datashield.assign.table(conn, symbol="D", table="CNSIM.CNSIM1",
variables=list("GENDER","LAB_GLUC"))
# assign all the variables matching 'LAB' from table CNSIM1
datashield.assign.table(conn, symbol="D", table="CNSIM.CNSIM1",
variables="name().matches('LAB_')")
# assign the tables that are defined in the logindata ('server' and 'table' columns are
# expected) data frame that is used in datashield.login() function. Connections
# are filtered by the list names.
datashield.assign.table(conns, "D", logindata)
# assign the tables that are defined in the provided named list.
# Connections are filtered by the list names.
datashield.assign.table(conns, "D",
list(server1="CNSIM.CNSIM1", server2="CNSIM.CNSIM2"))
# do assignment with callback functions
datashield.assign.table(conns, "D",
list(server1="CNSIM.CNSIM1", server2="CNSIM.CNSIM2"),
success = function(server) {
# do something with server's success
},
error = function(server, error) {
# do something with server's error message
})
}
Run the code above in your browser using DataLab