#' @importFrom rstudioapi getSourceEditorContext
carbonace_addin <- function(){
adi <- rstudioapi::getSourceEditorContext()
carbonace(init = adi$selection[[1]]$text)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.