When I am trying to load a clean data in Rstudio, file name called salesClean.RData, I am getting error.
Error message is: ReadItem: unknown type 161, perhaps written by later version of R
Screenshot of error message:
Here is what worked for me:
Simple Solution:
Try to use the tool Load Workspace. It allows you to select the Rds file and load it into memory.
Best Solution:
In some cases you do need to load the file programatically. In these situations you will probably prefer get your R up to date. You can do this by running the code:
install.packages("installr")
require(installr)
updateR()
Also, you can update your installed packages in RStudio on Tools > Check for packages updates.