Finally figured out that I needed to use the console with knitr to produce the .md file and figures