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

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).