Site icon Roel Peters

Solve ‘The device does not recognize the command’ when saving a file in RStudio

The following error message is something that me and my colleagues keep running into when using Rstudio.

‘Error Saving File — The device does not recognize the command’

There are multiple things that cause this, but basically it’s because RStudio is having troubles writing to the file.

Here’s what you can check for:

For reason 1, you can simply close the other program. In case of reason 2, you should free some space on the drive.

In case of reason 3, you can temporarily pause syncing of your cloud storage. However, you won’t be able to save to the file you want once you start getting to error. What you can do to overcome it, is to create a blank document in RStudio, copy and paste your code into it, and save it with another filename. Now that you paused syncing, you’ll no longer get the error.

By the way, if you’re having trouble understanding some of the code and concepts, I can highly recommend “An Introduction to Statistical Learning: with Applications in R”, which is the must-have data science bible. If you simply need an introduction into R, and less into the Data Science part, I can absolutely recommend this book by Richard Cotton. Hope it helps!

Great success!

Say thanks, ask questions or give feedback

Technologies get updated, syntax changes and honestly… I make mistakes too. If something is incorrect, incomplete or doesn’t work, let me know in the comments below and help thousands of visitors.

Exit mobile version