Convert special environments to rmd