compiling rmd