美文网首页
Linux系统R语言安装(Ubuntu 18.04,apt安装)

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

作者: hoyeezhang | 来源:发表于2021-03-19 14:45 被阅读0次

首先创建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


以上

相关文章

网友评论

      本文标题:Linux系统R语言安装(Ubuntu 18.04,apt安装)

      本文链接:https://www.haomeiwen.com/subject/dyivcltx.html