set Rmd type