knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(community)
When I first started to utilize the site.R
script, I found it helpful to understand which elements exists and how they can and cannot be used to create a website. This tutorial is aimed to give the users a slightly deeper understanding of the package by eliminating implicit knowledge. If you haven't already, I would first read the quick-start guide before continuing with this tutorial.
page_menu
s, but the second one would overlap with the first one, making you unable to close the second onesite.R
page_panel
with position=Left
argument and a page_menu
element, in first instance of rendering, the panel would first push the menu to the right of it, before having it recede to overlap itoutput_map()
is a singleton, and calling multiple maps, all but the first one appearsAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.