cleaning up Rmd file so it compiles