readRDS(文件)在R [英] readRDS(file) in R

查看:2448
本文介绍了readRDS(文件)在R的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试在R中安装软件包时,会出现以下错误:

  readRDS未知的输入格式

这是刚刚发生的系统崩溃。我在Windows 7下运行32位R 2.13.0。我尝试删除并重新安装R,但继续得到错误。



感谢

div class =h2_lin>解决方案

我遇到的三个建议是:


  1. 删除 .Rhistory .RData 文件。

  2. 运行 update.packages()

  3. 删除已存储下载的软件包的目录。

只有解决方案3适用于我。



参考文献: R -sig-Debian邮件列表


Whenever I try to install a package in R, I get the following error:

Error in readRDS(file) : unknown input format

This just started occurring after I had a system crash. I am running 32 bit R 2.13.0 under windows 7. I tried removing and re-installing R, but continue to get the error. Is there any way I can fix this without deleting everything (i.e. all the packages I've installed) and starting over?

Thanks

解决方案

The three suggestions I have come across are:

  1. Delete your .Rhistory and .RData files in the directory in which you are running R.
  2. Run update.packages()
  3. Delete the directory in which you have stored your downloaded packages.

Only solution 3 worked for me.

Ref: R-sig-Debian mailing list

这篇关于readRDS(文件)在R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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