#' Extracts last extension of a filename
#'
#' @param filename \code{character} filename to extract extension from
#'
#' @return A last dot(.) and text after it
#'
extract_extension <- function(filename){
stringr::str_extract(filename, "\\.([^\\.])+$")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.