modify Rmd file