Reporting Options Chunk for Knitr Projects

June 12, 2015

I like to hide everything. So that only what I write and what I plot is output. The following is included at the head of every report I write.

{r set-options, echo=FALSE, message=FALSE,warning=FALSE,cache=FALSE, error = FALSE}

library(knitr) # must call to set opts_chunk  
# other libs called here

# Set Options
 opts_chunk$set(echo=FALSE,
  message=FALSE,
  comment="",
  warning=FALSE,
  results='asis',
  fig.width=14,
  fig.height=5, 
  cache = FALSE)