在readRDS(file)中安装R软件包错误:从连接读取错误 [英] Installing R Packages Error in readRDS(file) : error reading from connection

查看:1271
本文介绍了在readRDS(file)中安装R软件包错误:从连接读取错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试在Ubuntu 14.04上的R中安装任何软件包时,都会出现以下错误:

Whenever I try to install any package in R on Ubuntu 14.04, I'm getting the following error:

Error in readRDS(file) : error reading from connection

我已经在此处尝试了给定的方法,但无法解决问题.

I already tried the methods given here but could not solve the problem.

推荐答案

1-从

1- Install the latest version of R form the CRAN and try to install a package.

2-如果可以,请使用另一个用户帐户进行检查.

2- If it is possible check it with another user account.

3-尝试安装R软件包本地.

3- Try to install the R package locally.

4-如果旧版本的R创建了RDS文件,您可能还有其他问题,这是R帮助的警告:

4- If there is an RDS file created by the old version of R you may have another sort of problem, this is the warning from R help:

警告

自R 2.4.0起,这些功能提供了稳定的接口(当 序列化对象的存储从字符更改为原始 向量).但是,序列化格式将来可能会更改 版本的R,因此不应长期使用此接口 R对象的存储.

These functions have provided a stable interface since R 2.4.0 (when the storage of serialized objects was changed from character to raw vectors). However, the serialization format may change in future versions of R, so this interface should not be used for long-term storage of R objects.

在32位平台上,原始向量限制为2 ^ 31-1个字节,但R 对象可以超过此值,并且它们的序列化通常为 比物体大.

On 32-bit platforms a raw vector is limited to 2^31 - 1 bytes, but R objects can exceed this and their serializations will normally be larger than the objects.

参考:帮助(序列化)

这篇关于在readRDS(file)中安装R软件包错误:从连接读取错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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