Issues saving R script


I'm having issues saving my R-script in R studio. Whenever I try to save an existing R script, I get the following error message:


If I try to save to a new directory, I'll get the following error message:
Error saving file. The system cannot find the specified file

also, I'm unable to write any csv files and get the following error message:
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 'test2.csv': No such file or directory

I've gotten this error twice in the past. Suddenly, the issue is resolved without any action but often returns.

Some actions that I've tried were restarting my computer, reinstalling R studio (to the latest version).

This topic was automatically closed 21 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.