if (FALSE) {
# assign a list of variables from table CNSIM1
datashield.assign(conn, symbol="D", value="CNSIM.CNSIM1",
variables=list("GENDER","LAB_GLUC"))
# assign all the variables matching 'LAB' from table CNSIM1
datashield.assign(conn, symbol="D", value="CNSIM.CNSIM1",
variables="name().matches('LAB_')")
# do assignment with callback functions
datashield.assign(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