replace_in_file <- function(file, pattern, replacement){
a <- read_file(file)
a <- str_replace_all(a, pattern, replacement)
write(a, file)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.