update Rmarkdown file