if (FALSE) {
# assign an expression to G asynchronously
datashield.assign.expr(conns, symbol = "G", expr = quote(as.numeric(D$GENDER)))
# assign an expression to G synchronously
datashield.assign.expr(conns, symbol = "G", expr = quote(as.numeric(D$GENDER)), async = FALSE)
# assign the expressions that are defined in the provided named list.
# Connections are filtered by the list names.
datashield.assign.expr(conns, "G",
list(server1=quote(as.numeric(D$GENDER)), server2=quote(as.numeric(D$SEX))))
# do assignment with callback functions
datashield.assign.expr(conns, symbol = "G", expr = quote(as.numeric(D$GENDER)),
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