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

寵の児 提交于 2020-05-13 22:38:03

问题


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


回答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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!