Install onedrive in program files

broken image
broken image

Latest Windows versions automatically sync your home folder with OneDrive, which I personally find very annoying. This is not an R or RStudio related variable, HOME is a system defined environment variable. I never had this problem on my previous machines since OneDrive was never automatically linked in previous Windows OS.

broken image

I must not be understanding this because nothing I do is working and no progress is made. ( path - Change home directory for R - Stack Overflow) I've looked at a number of resources including these and still no progress: Rprofile file, but 1) I can't seem to find out where RStudio starts up from and 2) I don't understand what Rprofile is supposed to look like for it to work (I also can't seem to save this as a RPROFILE file. I tried uninstalling and reinstalling R & RStudio, disabling OneDrive, and unlinking my OneDrive from my PC which now uses Windows 11.

broken image

I don't want anything I do with R to be connected to my OneDrive in any shape or form. I have tried 5 times and every time I installed R & RStudio, Sys.getenv('HOME') directs to my OneDrive. I've been trying to fix this for 2 days now.

broken image