packs <- c("reports", "knitr", "brew", "tools", "slidify", "xtable", "slidifyLibraries", "knitcitations") invisible(lapply(packs, require, character.only = TRUE)) opts_chunk$set(cache=FALSE) ## Set the path to save figures to be unique for each of the reports; ## otherwise unnamed chunks will get overwritten. opts_chunk$set(fig.path = 'assets/fig/<%= group %>-') BIB <- system.file("extdata/docs/example.bib", package = "reports") #test .bib bib <- read.bibtex(BIB) # #Reading in your own bib file: #bib <- read.bibtex(dir()[tools::file_ext(dir()) == "bib"][1]) #cite in text using `r citet(bib[1])`
--- .class #id
mydf <- mtcars[mtcars$cyl == <%= group %>, ] print(xtable(mydf), type="html", include.rownames = FALSE)
heatmap(as.matrix(mtcars[mtcars$cyl == <%= group %>, ]))
After you've developed a template run the functions in the brew.R
file found in the main directory.
--- .refs
bibliography("html", bulleted = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.