last_char <- function(x) {
n <- nchar(x)
x <- substr(x, n, n)
return(x)
}
fig_path <- function(x) {
y <- if (last_char(x) == '/') {
file.path(x)
} else {
file.path(paste0(x,'/'))
}
return(y)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.