为什么apt-get install r-base在R中安装3.2.3而不是3.4.0? [英] Why does apt-get install r-base install 3.2.3 instead of 3.4.0 in R?
问题描述
由于要下载名为"Slam"的软件包存在一些不兼容问题,我正在尝试安装R(3.4.0)的最新版本.我已经下载了3.4.0的tar.gz文件,但是要安装的make文件存在一些问题.
I am trying to install the latest version of R (3.4.0) due to some incompatibility issues with dowloading of a package called "Slam". I have downloaded the tar.gz file of 3.4.0 but there are some issues with the make file for installation.
我已经卸载了3.2.3的r-base.现在,当我再次安装R时,我得到的是相同版本,而不是升级版本.我什至没有运行sudo apt-get update
命令.
I have uninstalled the r-base of 3.2.3. Now when I'm installing R again, I get the same version instead of the upgrade version. I even ran the sudo apt-get update
command but in vain.
推荐答案
您需要从CRAN存储库安装,而不要从ubuntu安装.添加密钥,然后添加存储库,更新和apt-get
you need to install from the CRAN repos not the ubuntu ones. add the key, then the repository, update and the apt-get
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
sudo apt-get update
sudo apt-get install r-base
这篇关于为什么apt-get install r-base在R中安装3.2.3而不是3.4.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!