doRedis在Ubuntu Linux,R和RStudio中出现奇怪的套接字连接错误 [英] doRedis with strange socket connection error in Ubuntu Linux, R, and RStudio
问题描述
我正在尝试使doRedis R软件包在我最新的带有R 2.12.1的Ubuntu 10.0.4环境中工作.我尝试下载最新的2.15.1,但是它安装了该版本(使用apt-get install ...).无论如何,当我从doRedis.R(http://bigcomputing.com/doredis.R)运行以下代码行时:
I am trying to get doRedis R package working in my latest Ubuntu 10.0.4 environment with R 2.12.1. I tried download the latest 2.15.1 but it installs (with apt-get install...) this other version. Anyhow, when I run the following lines from doRedis.R (http://bigcomputing.com/doredis.R):
library('doRedis') #no issues here
registerDoRedis(queue='jobs')
我收到以下错误:
registerDoRedis(queue='jobs')
Error in socketConnection(host, port, open = "a+b", blocking = TRUE, timeout = timeout) :
unused argument(s) (timeout = timeout)
我也正在运行Redis服务器,等待毫无问题地接受连接.我可以与Redis-cli客户端连接,没有问题.这对于同一系统都是本地的. 这在Windows 7上运行正常,没有任何问题. 谢谢
I also have the Redis-server running waiting to accept connections with no problems. I could connect with Redis-cli client no problems. This is all local to the same system. This runs fine on my Windows 7 with no problems. Thanks
推荐答案
Ubuntu在其自己的存储库中的版本已经很旧了.您可以将CRAN添加到您的sources.list
中,并通过该存储库获取最新版本.阅读本页上的说明以获取更多信息.
The version Ubuntu has in its own repositories is quite old. You can add CRAN to your sources.list
and get the latest version through that repository. Read the instructions at this page for more information.
关于您的实际问题,似乎对socketConnection
的调用包含了它不支持的输入参数.请检查您正在运行的程序包的版本,是否与Windows 7下运行的程序包相同?另外,请使用上面的链接将R的版本升级到2.15.
In regard to your real question, it seems that a call to socketConnection
includes an input argument it does not support. Please check which version of the package you are running, is it the same as you run under Windows 7? In addition, please upgrade your version of R to 2.15 using the link above.
这篇关于doRedis在Ubuntu Linux,R和RStudio中出现奇怪的套接字连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!