urlobs <- function(){
require(stringr)
url <- readClipboard()
url <- str_sub(url, 2,-2)
url <- gsub(" ", "%20", url)
url <- gsub("\\", "/", url, fixed = TRUE)
url <- paste("file:///", url, sep = "")
writeClipboard(url)
return(url)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.