简体   繁体   English

Revolution R:在Debian Jessie上安装

[英]Revolution R: installation on debian jessie

I need to install Revolution R on a Debian Jessie (version 8, 64-bit). 我需要在Debian Jessie(版本8,64位)上安装RevolutionR

On my system there is already installed R 3.1.1 and Rstudio . 在我的系统上已经安装了R 3.1.1Rstudio

The Revolution download page give me three installation package for Ubuntu: 12, 14, 15 (older LTS, current LTS, current version). Revolution下载页面为我提供了三个Ubuntu的安装软件包:12、14、15(旧的LTS,当前的LTS,当前版本)。 Rstudio package give instead a single package for both Ubuntu 12.04+ and Debian 8+ (32 and 64-bit versions). Rstudio软件包为Ubuntu 12.04+和Debian 8+(32位和64位版本)提供了一个单独的软件包。

There is a way to understand what is the right package to install? 有一种方法可以了解什么是正确的软件包安装?

EDIT: I see from the community group that Debian is not officially supported, but should be OK using an Ubuntu packages. 编辑:我从社区组看到Debian不受官方支持,但使用Ubuntu软件包应该可以。

It seems OK to install Revolution R on Debian Jessie. 在Debian Jessie上安装Revolution R似乎可以。

Some precautions: 一些注意事项:

  • On my system there is libjpeg8 as missing dependency. 在我的系统上有libjpeg8作为缺少依赖项。 To avoid this, I installed from testing repository. 为了避免这种情况,我从testing存储库安装了。

    1. I tried to install the package using gdebi to install and resolve all necessary dependencies. 我尝试使用gdebi安装该软件包,以安装和解决所有必要的依赖项。
    2. libjpeg8 is missing from stable repository, so I take it from testing repository, protecting other packages with pinning preferences : libjpeg8在稳定的存储库中丢失,因此我从测试存储库中libjpeg8它,并通过pinning首选项保护其他软件包:

       sudo printf "# testing\\ndeb http://httpredir.debian.org/debian/ stretch main contrib non-free" >> /etc/apt/sources.list sudo vim /etc/apt/preferences # old Package: * Pin: release o=Debian,a=stable Pin-Priority: 980 Package: * Pin: release a=jessie-backports Pin-Priority: 900 # new Package: libjpeg8 Pin: release o=Debian,a=stretch Pin-Priority: 990 

    Note: The installed package is the libjpeg8:i386 version. 注意:已安装的软件包是libjpeg8:i386版本。

  • the installation process of Revolution R erases the original R and Rscript executables, so in my opinion it's better backup them (as root or using sudo ): Revolution R的安装过程会删除原始的RRscript可执行文件,所以我认为最好将它们备份(作为root或使用sudo ):

     sudo cp -i /usr/bin/Rscript /usr/bin/Rscript-original sudo cp -i /usr/bin/R /usr/bin/R-original 
  • Just in case you need to restore the original R and Rstudio executables without a backup, should be enough to reinstall the r-base-core package: 万一您需要在没有备份的情况下还原原始的RRstudio可执行文件,应该足以重新安装r-base-core软件包:

     sudo apt-get --reinstall install r-base-core -V 
  • using Revolution R with Rstudio should be fine. 与Rstudio一起使用Revolution R应该没问题。 However if you would use a custom version of R (the original one, eg) with Rstudio it's possible to follow these instructions : 但是,如果您要在Rstudio中使用R的自定义版本(例如原始版本),则可以遵循以下说明

     export RSTUDIO_WHICH_R=/usr/bin/R-original echo "export RSTUDIO_WHICH_R=/usr/bin/R-original" >> ~/.profile source ~/.profile # logout and login again to use this profile also outside the bash 

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

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