When working on a unix system, the ~
expands my directory to my unix home. When on my windows computer, I would like ~
to expand to the drive that is mapped and points to the Unix home. I am using RStudio for coding on the windows computer and it expands the ~
to something that isn't helpful and I am having trouble changing it. I have played with the environment variables and PATH
but cannot get it to point to what I want. Any ideas?
UPDATE:
Per Josh's answer. Changing the R_USER
environment variable in windows, prior to starting RStudio yields on startup:
Error: invalid version specification ‘NA’
In addition: Warning message:
In utils:::packageDescription(packageName, fields = "Version") :
no package 'rstudio' was found
Changing it manually every time after RStudio startup is possible using this answer but I would like to avoid doing that.