Nothing
#' @importFrom utils capture.output
#' @importFrom xfun upload_imgur
capture.print <- function(obj, comment = NA,...){
if(details_env$device){
if(details_env$imgur){
imgur_res <- xfun::upload_imgur(obj, include_xml = TRUE)
obj <- sprintf('', imgur_res$link)
}
}else{
if(!inherits(obj, 'character')){
obj <- utils::capture.output(print(obj, ...))
}
}
if(!is.na(comment))
obj <- paste0(comment, ' ', obj)
paste0(obj, collapse = '\n')
}
read_text <- function(text){
if(!inherits(text,'character')||length(text)>1)
return(text)
if(!details_env$device){
if(file.exists(text)){
text <- readLines(text,warn = FALSE)
}
}
text
}
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.