debugonce_addin <- function(){
selection <- rstudioapi::primary_selection(
rstudioapi::getSourceEditorContext())[["text"]]
rstudioapi::sendToConsole("",execute = F)
eval(parse(text=paste0("debugonce(",selection,")")))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.