简体   繁体   English

如何在Debian Jessie(8.8)上安装更新的R-packages?

[英]How to install newer R-packages on Debian Jessie (8.8)?

On Debian Jessie (8.8), the most up-to-date R package isn't enough for using some Jupyter-notebook functions (like rpy2 ), so I am trying to get R>=3.3 version. 在Debian Jessie(8.8)上,最新的R包不足以使用某些Jupyter-notebook函数(例如rpy2 ),因此我试图获得R> = 3.3的版本。 The current version is: 当前版本是:

R version 3.1.1 (2014-07-10)    

Here is an useful link provided by a stackoverflow user: https://cran.r-project.org/bin/linux/debian/ , but even with it, I don't know how to get the newer R-version. 这是一个stackoverflow用户提供的有用链接: https : //cran.r-project.org/bin/linux/debian/ ,但是即使有了它,我也不知道如何获得更新的R版本。

Would you help me please? 你能帮我吗?

EDIT 编辑

Not sure if helps, but here is what I have in /etc/apt/sources.list 不确定是否有帮助,但这是我在/etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160315-14:54]/ jessie contrib main non-free

## Repositorio oficial de Debian GNU/Linux
deb http://ftp.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

~

You can upgrade r package from : 您可以从以下位置升级r软件包:

1) Backports repository : (the 3.3.3 version) 1)Backports信息库:3.3.3版本)

Add the following line to your sources.list : sources.list下行添加到您的sources.list

deb http://deb.debian.org/debian jessie-backports main contrib non-free

Save then install r : 保存然后安装r

apt-get update
apt-get -t jessie-backports install r-base r-base-dev

2) CRAN repository (the 3.4.3 version) 2)CRAN资料库3.4.3版本)

Follow the steps described on the official documentation : 请遵循官方文档中描述的步骤:

For a backport of R 3.4.3 to jessie, please add something like 对于R 3.4.3到jessie的后向移植,请添加以下内容

deb http://<favourite-cran-mirror>/bin/linux/debian jessie-cran34/

to the file /etc/apt/sources.list on your computer. 到计算机上的/etc/apt/sources.list You need to substitute <favourite-cran-mirror> by one of the mirror URLs listed in the mirror list . 您需要用镜像列表中列出的镜像URL之一替换<favourite-cran-mirror>

Secure APT 安全的APT

Before installing the package from CRAN repository , You need to import the singing key released by Johannes Ranke <jranke@uni-bremen.de> ( see the secure-apt ) 从CRAN存储库安装软件包之前,您需要导入Johannes Ranke <jranke@uni-bremen.de>发行的演唱密钥( 请参阅secure-apt

e,g:. 例如:。

echo deb https://mirrors.sorengard.com/cran/bin/ldebian jessie-cran34/ >> /etc/apt/sources.list
apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'
apt-get update
apt-get install r-base r-base-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM