library(rmarkdown)
render(input = "README.Rmd",
output_format = "github_document")
if("README.html" %in% list.files()) file.remove("README.html")
render(input = "NEWS.md",
output_format = "github_document")
if("NEWS.html" %in% list.files()) file.remove("NEWS.html")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.