安装路径和用户路径中包含中文会出现问题
官方文档https://cran.r-project.org/bin/linux/ubuntu/
#添加源
sudo sh -c 'echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" >> /etc/apt/sources.list'
#Secure APT
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
#更新
sudo apt update
sudo apt upgrade
#安装
sudo apt-get install r-base-dev
网友评论