I'm creating a Shiny app and one of my outputs is best saved as a .RData file for the user.
I can download data in various other formats but I'm not sure how to work with .RData. An alternate method to save R objects would be fine here too. Some dummy code on the server side would look like:
# Make widget
widget <- 1:42
# Download widget
output$widget <- downloadHandler(
filename=paste0("widget_", Sys.Date(), ".RData"),
content=function(file){
save(widget), file=file)
}
)
I can click the download button fine and it refreshes my window but no items are put in the download queue.
save(widget), file=file)
should besave(widget, file=file)
? – MDe