Added RStudio env variable to make it work