在 Rstudio 中加载数据时出现错误“ReadItem:未知类型 161,可能是由更高版本的 R 编写"? [英] When loading data in Rstudio getting error "ReadItem: unknown type 161, perhaps written by later version of R"?

查看:98
本文介绍了在 Rstudio 中加载数据时出现错误“ReadItem:未知类型 161,可能是由更高版本的 R 编写"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Rstudio 中加载干净的数据时,文件名为 salesClean.RData,我收到错误.

When I am trying to load a clean data in Rstudio, file name called salesClean.RData, I am getting error.

错误信息是:ReadItem: unknown type 161, 也许是由更高版本的 R 编写的

错误信息截图:

推荐答案

这对我有用:

简单的解决方案:

尝试使用工具加载工作区.它允许您选择 Rds 文件并将其加载到内存中.

Try to use the tool Load Workspace. It allows you to select the Rds file and load it into memory.

最佳解决方案:

在某些情况下,您确实需要以编程方式加载文件.在这些情况下,您可能更愿意让 R 保持最新状态.你可以通过运行代码来做到这一点:

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

此外,您可以在 RStudio 中的工具 > 检查软件包更新中更新您安装的软件包.

Also, you can update your installed packages in RStudio on Tools > Check for packages updates.

这篇关于在 Rstudio 中加载数据时出现错误“ReadItem:未知类型 161,可能是由更高版本的 R 编写"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆