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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.