This package and these pages grew out of the R Markdown tutorial given at UseR! 2016 at Stanford. The purpose of both is to show how you can make your own functions to customize the behavior of rmarkdown::html_document()
.
In the navbar, you will find links to demonstration for a set of increasingly-more-complicated html-document functions.
I don't see myself submitting this to CRAN.
# install.packages("devtools") install_github("ijlyttle/user2016docdemo")
First of all, this site is kept in the master
branch of the repository, in the /docs
folder. This is a new offering from GitHub to allow you to serve GitHub pages from the master branch (link).
You can see the organization of this site by viewing the GitHub repository.
To be able to build your site using rmarkdown::render_site()
, there are two required elements (links to this site's source files included):
You can read more about site-building in this RStudio article.
Apparently, you can seperate out the navbar into its own yml file. This is not necessary as this content can be included in _site.yml
, but I find it to be useful:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.