Wondering if anyone may be able to offer assistance.
After having used R and RStudio successfully in my Windows 10 installation for more than one year, now I am unable to save files using RStudio or R in the same file location(s) I have used historically. For me, that is C:\Users\Scott\Documents\R<subfolders containing projects>, and which also includes the win-library folder.
With all other applications I am able to save files in these locations without issue. The Windows permissions appear to be fine.
I tried running RStudio as Administrator.
I tried renaming the C:\Users\Scott\AppData\Local\RStudio-Desktop folder.
I have installed the latest versions of R and RStudio, in that order, and restarted the system.
The problem seems specific to the R ecosystem at all folder levels below C:\Users\Scott where I am able to save from RStudio.
Due to the read-only/access denied issue, I am unable to save files, history, open project or update packages.
An example from the log file is ERROR system error 5 (Access is denied) [path=C:/Users/Scott/Documents/.Rhistory], which I know is basically a Windows error, but again it is only occurring with R-related activities.
Problem exists as well with Vanilla R for sure. I'll experiment with console.
I think Plan B, or at least test B, will be to copy the concerning set of folders to another drive and see if I can just carry on.
Plan C will be to try a total uninstall reinstall.
I ask myself, "what changed"? At some point, I likely played around with trying to run RStudio from Anaconda and then backed out. I just can't be certain it was before or after the problem. Only a month ago it was all good, I was leveling up on leaflet and tmap, having a great time.
PS. Wow, I wasn't expecting a VIP to respond. Thanks!
uninstalled RTools
... everything a knew of for a clean install.
Restarted system
Reinstalled latest R
Reinstalled latest RStudio
opened RStudio and got the normal setup prompts.
No luck. In the new Users\Scott\Documents\R folder, there exists a clean win-library folder, but I cannot create a new directory project. I can, however, save a notepad file.
Fingers crossed, I think I found the problem: BitDefender had somehow decided to block:
R for Windows GUI front-end
RStudio
RStudio R Session
In BitDefender Internet Security 2018, this is under Protection | View Features | Safe Files | Application Access. I set the above three items to Allowed and was able to create a new project in the standard C:\Users\Scott\Documents\R directory.
No further updates shall indicate the problem is resolved, and hopefully, if anyone else runs into this issue you will be assisted by the above, at least as a possible root cause.