Error in install.packages : path[1]="\Users\name\Documents\R\win-library\4.1": Access is denied
I am trying to install basic r packages, and keep getting this error even though I have full permissions for this folder. I have tried different packages so it is something going on with my permissions.
CodePudding user response:
Hey I figured it out using this guide I was confused because I had permissions to the document folder but because it was being backed up to the network I was getting an error. I also had to manually set permissions to the r-library files to make sure they weren't 'read only'
CodePudding user response:
Remove the file .Rhistory in directory C:\Users\name\Documents
Then install the package as normal.