The reformatFilePath RStudio Addin provides convenient mechanism replacing path string with a file.path call.
The package can be installed from GitHub using devtools or remotes package. Installation using devtools:
if (!require("devtools")) {
install.packages("devtools")
devtools::install_github('konradedgar/reformatFilePath')
} else {
devtools::install_github('konradedgar/reformatFilePath')
}

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.