Nothing
serverDownloader <- function(id, getData) {
moduleServer(id, function(input, output, session) {
observeEvent(input$requestData, {
data_csv <- readr::format_csv(getData())
if(input$requestData$goal == "download"){
session$sendCustomMessage("dataForDownload", data_csv)
}else if(input$requestData$goal == "saveData"){
session$sendCustomMessage("dataForSave", data_csv)
}else {
stop("invalid goal")
}
})
})
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.