##' @export
add_last_bar <- function(path){
if(!grepl("/$", path)) path <- paste0(path, "/")
return(path)
}
##' @export
getout_path <- function(path){
if(missing(path)){path <- "."}
if(!grepl("/$", path)){path <- paste0(path, "/")}
if(grepl("^\\./?$", path)){path <- ""}
.path <<- paste(getwd(), path, sep = "/")
}
##' @export
getout_name <- function(output){
paste0(.path, output)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.