When loading data in Rstudio getting error "ReadItem: unknown type 161, perhaps written by later version of R"?

Ziaridoy20 picture Ziaridoy20 · Jan 26, 2015 · Viewed 7k times · Source

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: screenshot

Answer

Kennedy Sousa picture Kennedy Sousa · Mar 14, 2018

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.