Can't open csv files in RStudio but I can in R using the same code

I had RStudio crash recently. Since then, I haven't even been able to open a single csv file in RStudio, but running the same line of code in R I can. I get the warning "Warning: cannot open file 'filename': Operation not permitted Error in file(file, "rt") : cannot open the connection". I have tried uninstalling and reinstalling both R and RStudio, as well as resetting RStudio Desktop's State (, and I still can't open files. If anyone has experienced this before please let me know what you've done, I'm at a loss right now.

Ok nevermind, apparently I just had to restart my computer after the reset. Leaving this here in case anyone else runs into this issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.