#' Sets a range of parameters re-used throughout the repo by sourcing the <repo>/repoParams.R file
#'
#' \code{setup} sources the <repo>/ggrParams.R file which sets a range of parameters as elements of the `ggrParams` list. These include default data sources and .Rmd include locations.
#'
#' The parameters can be over-written in scipts if needed but do so wih care!
#'
#' @author Ben Anderson, \email{ben.anderson@@otago.ac.uk} (original)
#' @import here
#' @export
#'
setup <- function(){
pLoc <- here::here() # R project location
source(paste0(pLoc, "/repoParams.R"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.