require(rstudioapi)
setupSaveRds = function() {
rstudioapi::insertText(
"saveRDS( robj, file = paste0(data_path, fname) )"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.