knitr::knit("README.Rmd", "README.md")
library(devtools)
document()
install()
build_vignettes()
checkResult <- check()
if(checkResult) {
system("rm -r inst/web/*") # needs to be deleted because the vignette was not updated
staticdocs::build_site()
# system('git push origin --delete gh-pages')
system('git add -f inst/web && git commit -m "gh-pages subtree commit"')
system('git subtree push --prefix inst/web origin gh-pages')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.