writing Rmd