Whenever I run RStudio and want to install packages, it gives me that: "Would you like to use your personal library instead?". If I pick "yes", it suggests me to create a personal library in my working directory. And then it fails to install:
Warning in install.packages : cannot create dir 'C:\Users\Name.Name-Name\OneDrive - ??? ?????? ????? ?????????', reason 'Invalid argument' Error in install.packages : unable to create ‘C:/Users/Name.Name-name/OneDrive - ??? ?????? ????? ?????????/?????????/R/win-library/3.6’
When I run my R as administrator, packages install.
I have a Windows 10 OS, the source directory of my R and RStudio is "C\ProgrammFiles"
This problem has begun when I started using OneDrive service (as our uni provides us with 1 TB of cloud in OneDrive). Then I got really annoyed by OneDrive and deleted it. But the problem remained.
P. S.: I do not want always running RStudio as administrator — it takes a long time. P. P. S.: "?????" in the error message is Cyrillic letters. I don't think that they are the cause of this particular problem because as administrator permission it works...