paste_winpath <- function() {
path_orig <- readClipboard()
path_fixed <- normalizePath(path_orig, winslash = "/")
rstudioapi::insertText(path_fixed)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.