Permission denied when changing global settings

Hi,

I have been reading all the posts regarding the issues around changing the global settings in Global Options. I am new to R and R studio, and the answers to the other posts have not been helpful; I tried to use the terminal to make the changes but to no avail, and I am not sure I am going about it the right way.
Is there a step-by-step guide to making the necessary changes so this no longer happens? I also received the error message"permission denied" when creating a new project, but despite the error message, the project and the associated folders in the specified locations have been created. I am using the R studio desktop app on my private MacBook Pro. I am the only user and presumably the administrator (I can change anything on my Mac with my password).
Any help would be much appreciated!

1 Like

Have you tried resetting RStudio's state?

A permissions issue with RStudio. Try running RStudio as an administrator (sudo open -a RStudio in Terminal). Also, check if your Global Options file is locked:

  1. Navigate to ~/.config/rstudio or ~/.rstudio-desktop (depending on your setup).
  2. Check file permissions with ls -l and update them with chmod u+w <filename> if needed.

If the issue persists, try resetting RStudio settings by renaming the ~/.rstudio-desktop folder and restarting RStudio.