rmarkdown example using yaml to set knitr opts and hooks