Skip to content

Instantly share code, notes, and snippets.

@eclarke
Created April 20, 2016 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eclarke/387b853982a1527917c852c8ffe4c92e to your computer and use it in GitHub Desktop.
Save eclarke/387b853982a1527917c852c8ffe4c92e to your computer and use it in GitHub Desktop.
Builds docs, html site, and pushes to github
docs:
Rscript -e "devtools::document(roclets=c('rd', 'collate', 'namespace', 'vignette'))"
gh-pages:
git checkout gh-pages
git merge master -X theirs -m "merge master"
site:docs gh-pages
Rscript -e "staticdocs::build_site(site_path='.', launch=FALSE)"
git commit -am 'updated docs'
git checkout master
update: site
git push
git checkout gh-pages
git push
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment