Closed brownag closed 2 years ago
Thanks. That could have been bad
I suspect we could see people running into problems with this if it is more than just a fluke that that env variable is not defined on my system. Symptoms will include suddenly appearing like no packages are installed because personal lib cannot be found. Fixing it may require manually removing the existing .Rprofile from the network drive that redirects to local.
Warnings about not being able to create directory e.g. "C:/Users//Documents" due to insufficient permissions will also pop up
I noticed that after some recent reconfiguration the
Sys.getenv("USERNAME")
call we have been using in the .Rprofile returns""
.I have replaced that call with
Sys.info()['user']
which should be more reliable.