Import rstudio api.
Closes #458