Nothing
source_decoratees_addin <- function() {
if (!requireNamespace('rstudioapi')) {
stop('please install the rstudioapi package', call. = FALSE)
}
active <- tryCatch(
rstudioapi::getSourceEditorContext(),
error = function(e) {
list(
id = '',
path = '',
contents = ''
)
})
if (active$path != '') {
cmd <- paste0('source_decoratees("', active$path, '")')
rstudioapi::sendToConsole(cmd)
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.