在 ubuntu 上安装以前版本的 R [英] Install previous versions of R on ubuntu

查看:84
本文介绍了在 ubuntu 上安装以前版本的 R的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 ubuntu 服务器上使用 RHadoop 包(rmr、rhdfs、rhbase).这些仅适用于旧版本的 R 2.15.0 而不适用于当前的 3.0.1 版本.我创建了一个允许我安装 3.0.1 版本的镜像.

I am wanting to use RHadoop packages(rmr, rhdfs, rhbase) on my ubuntu server. These only work with the older version of R 2.15.0 and not on the current 3.0.1 version. I have created a mirror which allowed me to install the 3.0.1 version.

sudo apt-get install r-base-dev

我需要在这里更改什么才能获得 2.15.0 版本的 R?

What do I need to change here to get the 2.15.0 version of R?

我已尝试使用这些链接,但我想我可能需要访问一个新镜像,因为两个下载的链接不同.

I have tried using the links but i think I might need to access a new mirror since the link to both downloads are different.

当前镜像:

deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu precise/

我假设它获取最新的文件并执行它:

I assume its getting the most recent file and executing it:

http://cran.cnr.berkeley.edu/bin/linux/ubuntu/precise/r-base-dev_3.0.1-5precise0_all.deb

http: //cran.cnr.berkeley.edu/bin/linux/ubuntu/precise/r-base-dev_3.0.1-5precise0_all.deb

我希望它遵循并安装的链接

The link I want it to follow and install

http://cran.cnr.berkeley.edu/src/base/R-2/R-2.15.0.tar.gz

http: //cran.cnr.berkeley.edu/src/base/R-2/R-2.15.0.tar.gz

在 berkeley.edu 之后一切都不同了,但在我的镜子中它会保持不变.我试过换镜子,但没有任何运气.

After berkeley.edu it is all different but in my mirror it would stay the same. I have tried changing my mirror but haven't had any luck.

如果有人有任何建议或可以引导我走上正确的道路,那将非常有帮助.

If anyone has any suggestions or can lead me down the right path that would greatly help.

-乔伊

推荐答案

您将在标准目录中找到以前的 二进制版本 Ubuntu,只需手动:

You will find previous binary builds for Ubuntu in the standard directory, just by hand:

 https://cran.r-project.org/bin/linux/ubuntu/

您始终可以手动下载它们,然后告诉包管理系统将它们搁置",即不升级.对于 dpkg --set-selectionhold 状态,请参见例如 man dpkg.

You can always download them manually and then tell the package management system to put them 'on hold', ie to not upgrade. See eg man dpkg for the dpkg --set-selection and the hold state.

这篇关于在 ubuntu 上安装以前版本的 R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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