Warning message in R studio : Failed to restore workspace from '~/.RData

Reason :bad restore file magic number (file may be corrupted) -- no data loaded

what does this mean and how to avoid this error?

I am using Windows 10.

R is trying to restore the environment of your previous session but the file is corrupted, you can delete that file in your working directory or disable this option on RStudio. (Which is actually a good practice).

Thanks alot @andresrcs

The issue got resolved with your suggestion

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

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