# set global options for output images # tidy.opts = margin cutoff point and wraps text to the next line knitr::opts_chunk$set(fig.path = "../output/figures/", echo = FALSE, warning = FALSE, message = FALSE, tidy.opts = list(width.cutoff = 72)) # set global options for knitr knitr::opts_knit$set(progress = TRUE, verbose = TRUE)
# for knitting latex to pdf in windows # Sys.setenv(JAVA_HOME = "C:\\Programme\\Java\\jre1.8.0_171") source("@@name@@_do.R")
fig1capt <- "**This is a figure caption.**"
# plot data #plot(p1) # include_graphics(fig1)
This paper has been written using RStudio (Version 1.1.456) and knitr (Version 1.20). All data and code are freely available online to ensure reproducibility at @@git@@.
# r_refs(file = "r-references.bib")
\begingroup \setlength{\parindent}{-0.5in} \setlength{\leftskip}{0.5in}
\endgroup
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.