The system cannot find the file specified in RStudio
Asked Answered
K

2

7

I receive this error message almost every time that I type something in the current r script that I am working on.

Photo of Error Message

The error message continues to pop up until I press Control + S multiple times before the R script can save. Then, about 10-15 seconds later after I type something else, the error message pops up again.

Anyone has a fix?

Kaph answered 12/3, 2019 at 18:47 Comment(0)
P
2

It's possible that you worked on a script in RStudio and saved the script into a certain folder, then you moved the script to a different folder, while still leaving it open in RStudio.

Try closing all scripts in RStudio, then reopening the script (assuming that you’re sure that the script is saved and you know the location it is saved).

Parfitt answered 12/3, 2019 at 18:53 Comment(1)
Yes, I believe I tried to the save the file in another folder once. I closed the script in RStudio, closed RStudio, and reopened the script and have not encountered the problem since.Kaph
S
0

Another thing that worked for me was I manually created a folder and the error was resolved.

Sessile answered 27/3, 2023 at 22:41 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.