publicar <- function(arquivo) {
rmarkdown::render(input = paste0("rmarkdown/", arquivo),
output_file = "README.md")
file.remove("README.md")
file.copy(from = "rmarkdown/README.md", to = ".")
file.copy(from = "rmarkdown/README.md", to = "docs/README.md")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.