renv_addins_embed <- function() {
project <- rstudioapi::getActiveProject()
context <- rstudioapi::getSourceEditorContext()
rstudioapi::documentSave(id = context$id)
embed(path = context$path, project = context$project)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.