I've been trying to fix this for 2 days now.
I have tried 5 times and every time I installed R & RStudio,
Sys.getenv("HOME") directs to my OneDrive. I don't want anything I do with R to be connected to my OneDrive in any shape or form.
I tried uninstalling and reinstalling R & RStudio, disabling OneDrive, and unlinking my OneDrive from my PC which now uses Windows 11. And
HOME still goes to OneDrive.
I've tried to create a .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. It keeps saving as .txt).
I've looked at a number of resources including these and still no progress:
Rprofile - YouTube
(path - Change home directory for R - Stack Overflow)
I must not be understanding this because nothing I do is working and no progress is made.
I never had this problem on my previous machines since OneDrive was never automatically linked in previous Windows OS.
What am I missing? Thank you.