问题
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:
回答1:
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.
回答2:
Make sure that you're using the latest version not only of Rstudio, but R as well. Try sessionInfo()
command, it should say that you have R version 3.1.2.
回答3:
In my case, finally I found it's because the hard disk under my root is full. I freed some disk memory and re-saved the .RDdata
file, the load
works again.
来源:https://stackoverflow.com/questions/28155563/when-loading-data-in-rstudio-getting-error-readitem-unknown-type-161-perhaps