My computer is giving me permission denied when I try to write csv or text files to my working directory folder. How do I fix it?
write(filled, file ="/Users/hp/Documents/ESS580/ClassProject1/EDSFA_2022/filled_acres.csv", sep = ',')
Error in file(file, ifelse(append, "a", "w")) : cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) : cannot open file '/Users/hp/Documents/ESS580/ClassProject1/EDSFA_2022/filled_acres.csv': Permission denied
I have tried to fix this on my own using the below post. I have double checked that the permissions on the folder allow for reading and writing, and I use Rstudio as administrator. To my understanding, there isnt antivirus software on this computer.