working with Rmarkdown document