目前的版本是R3.4,参照网上教程,
先是添加了镜像:
deb https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/linux/ubuntu/bionic-cran35/
然后依次执行:
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
遇到以下报错信息,
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 3.5.1-1bionic) but 3.4.4-1xenial0 is to be installed
Depends: r-recommended (= 3.5.1-1bionic) but 3.4.4-1xenial0 is to be installed
这是要先卸载旧版R吗?可这样包也全卸载了,之后更新就不记得装过什么包了?
哪位有成功更新的经验,分享下,谢谢!