Linux系统R语言安装(Ubuntu 18.04,apt安装)

首先创建CPAN的环境

# update indices

        apt update -qq

# install two helper packages we need

        apt install --no-install-recommends software-properties-common dirmngr

# import the signing key (by Michael Rutter) for these repo

        apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed

        add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -sc)-cran40/"

然后进行R语言主程序的安装:

apt install --no-install-recommends r-base

将CRAN上R包的index读取到本地:

add-apt-repository ppa:c2d4u.team/c2d4u4.0+

R包安装(示例):

sudo apt install --no-install-recommends r-cran-tidyverse


以上

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容