在 Ubuntu 12 上安装最新版本的 R? [英] Installing latest version of R on Ubuntu 12?

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

问题描述

我在 Ubuntu 机器上安装 R 时遇到问题.每当我尝试安装软件包时,都会出现错误:

I am having trouble with R installation on my Ubuntu machine. Whenever I try to install a package, it gives me the error:

包 ‘xyz’ 不可用(对于 R 版本 2.14.1).

我尝试通过终端本身安装 R,但我无法升级.有没有办法,我可以在安装包时克服这个版本依赖?

I tried installing R through terminal itself, but I am not able to upgrade. Is there a way, I can come over this version dependency while installing packages?

谢谢

推荐答案

要获得最新版本,您需要将 CRAN 添加到您的 /etc/apt/sources.list 文件中,请参阅 关于 CRAN 的说明.确保选择正确版本的 Ubuntu 的地址(即安装在您机器上的地址,在我的例子中是精确"的),否则会出现版本冲突.

To get the most recent version, you need to add CRAN to your /etc/apt/sources.list file, see instructions on CRAN. Make sure to pick the address with the right version of Ubuntu (i.e the one installed on your machine, "precise" in my case), otherwise you will have version conflicts.

问题是 Ubuntu 存储库没有最新版本的 R.

The thing is that the Ubuntu repository doesn't have the most recent version of R.

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

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