#' Swap / for \\ in path expand
#' @param x file path, could be relative or ~
#' @return Full filepath to x
#' @details See path.expand() in base R
#' @export
path.expand.2 <- function(x){
# Swap / for \\ in path expand
temp <- path.expand(x)
temp <- gsub("/~$","",temp)
out <- gsub("\\\\","/",temp)
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.