knitr::opts_chunk$set( collapse = TRUE, warning = FALSE, message = FALSE, echo = FALSE, comment = "#>", fig.path = "../figures/", dpi = 300 )
Here is a citation [@Marwick2017]
# Note the path that we need to use to access our data files when rendering this document my_data <- read.csv(here::here('analysis/data/raw_data/my_csv_file.csv'))
plot(rnorm(10))
Figure \@ref(fig:demo-plot) shows how we can have a caption and cross-reference for a plot
x <- round(pi, 2)
Here is an example of inline code r x
in the middle of a sentence.
\newpage
\newpage
This report was generated on r Sys.time()
using the following computational environment and dependencies:
# which R packages and versions? if ("devtools" %in% installed.packages()) devtools::session_info()
The current Git commit details are:
# what commit is this file at? if ("git2r" %in% installed.packages() & git2r::in_repository(path = ".")) git2r::repository(here::here())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.