In RStudio View(iris)
is very slow - it locks up RStudio for ~5-10s or more. I have no idea why this difference exists.
I ran the following to find out my HOME directory:
$ echo $HOME
This returns /h/
- my Home drive on the network
If you run:
$ setx HOME $USERPROFILE
(in bash)
OR
> setx HOME "%USERPROFILE%"
(in CMD)
this sets HOME
to c:/Users/[username]
, and it appears to fix the problem - View(iris)
is now fast everywhere!
Caveat: I currently have all of my dotfiles (.Rprofile, .Renviron, .gitconfig, .bashrc, etc.) in my H:/
(home network)
drive because that is (has been) the HOME
directory. If you set HOME
to c:/Users/[username]
as above, you will need to move all of your dotfiles there.
Hello,
Should I ran the command before or after installation?