knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
ddsecblog is a knitr output format for creating posts for Data Driven Security
After doing a devtools::install_github("hrbrmstr/ddsecblog")
install, format posts like this in an Rmd file to generate an Rmd and figures you can move to the ddsec blog directory structure:
--- Title: RBerkeley Was Just Pining For the Fjords Date: 2015-07-27 Tags: blog, r, rstats Category: blog, r, rstats Author: Bob Rudis (@hrbrmstr) output: ddsecblog::post --- ```r knitr::opts_chunk$set(echo = TRUE) ``` This is some text. ```r print("this is some R code") ``` This is *MOAR* text ```r plot(mtcars$wt, mtcars$mpg) ``` That was a _plot_.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.