fixed Rmd to compile