I would like to send to the DS server a serialized R object. I’m trying the following (the questions variable is the object to be serialized):
cally <- paste0("prepare_dataset_treeDS(", data, ", ", serialize(questions, NULL), ")") DSI::datashield.assign.expr(datasources, "tree_data", as.symbol(cally))
It’s not working as the code is generating multiple cally’s, each one with a byte of the raw serialized object
"prepare_dataset_treeDS(D, 58)" "prepare_dataset_treeDS(D, 0a)" "prepare_dataset_treeDS(D, 00)" etc
Anyone knows the correct way of sending serialized objects?