Nothing
my_traceback <- function(x = NULL) {
if(is.null(x) && !is.null(x <- get0(".Traceback", envir = baseenv())))
{}
else if (is.numeric(x)){
my_internal <- get0(".Internal", envir = baseenv())
x <- my_internal(traceback(x))
}
x
}
crumb <- function() {
x <- my_traceback(1)
if (any(grepl("^rmarkdown", x[[length(x)]]))) {
srloc <- gsub('^(.*?)\\(|\\,(.*?)$|["]', "", x[[length(x)]][1])
return(srloc)
}
idx <- which(sapply(x, function(xx) all(grepl(pattern = "whereami", xx))))
idx <- idx[length(idx)]
srcloc <- if (!is.null(srcref <- attr(x[[idx]], "srcref"))) {
srcfile <- attr(srcref, "srcfile")
srcfile_name <- srcfile$filename
if (!nzchar(srcfile_name)) {
return(NULL)
}
sprintf("%s#%s", srcfile_name, srcref[1L])
} else {
NULL
}
return(srcloc)
}
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.