knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Website are built using the pkgdown package.

pkgdown::build_site()

To add a website follow the instructions here: https://pkgdown.r-lib.org/reference/deploy_site_github.html The key part is creating the gh-pages branch in bash/PowerShell:

git checkout --orphan gh-pages
git rm -rf .
git commit --allow-empty -m 'Initial gh-pages commit'
git push origin gh-pages
git checkout master


Robinlovelace/testPackage documentation built on Nov. 12, 2019, 12:03 a.m.