将R版本从3.0.3更新为3.1.2

我想将ubuntu的R从3.0.3更新为3.1.2。我正在Ubuntu 14.04LTS,64位。

我做了以下:

cd /etc/apt/
sudo gedit sources.list

我添加了以下行:

deb http://cran.rstudio.com/bin/linux/ubuntu trusty/

然后 :

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base

有些文件已上传。

然后我检查了R版本:

sudo R
version

platform       x86_64-unknown-linux-gnu    
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          3                           
minor          0.3                         
year           2014                        
month          03                          
day            06                          
svn rev        65126                       
language       R                           
version.string R version 3.0.3 (2014-03-06)
nickname       Warm Puppy      

我还有3.0.3版本,有人可以帮我升级到3.1.2吗?

ECII编辑:

sudo apt-get dist-upgrade

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
blcr-util bwidget gcc-4.8-base:i386 ggobi jags libaudio2:i386 libcr0
libexpat1:i386 libffi6:i386 libfontconfig1:i386 libfreetype6:i386
libgcrypt11:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386 libglib2.0-0:i386
libglpk36 libgpg-error0:i386 libgstreamer-plugins-base1.0-0:i386
libgstreamer1.0-0:i386 libhwloc5 libibverbs1 libice6:i386 libjbig0:i386
libjpeg-turbo8:i386 libjpeg8:i386 libodbc1 libopenmpi1.6 liborc-0.4-0:i386
libqt4-dbus:i386 libqt4-declarative:i386 libqt4-network:i386
libqt4-opengl:i386 libqt4-script:i386 libqt4-sql:i386 libqt4-xml:i386
libqt4-xmlpatterns:i386 libqtcore4:i386 libqtdbus4:i386 libqtgui4:i386
libqtwebkit4:i386 libquantlib-1.2 libsm6:i386 libsprng2 libsqlite3-0:i386
libssl1.0.0:i386 libstdc++6:i386 libtiff4 libtiff5:i386 libtk8.5 libtorque2
libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386
libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386
libxcb1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386
libxi6:i386 libxml2:i386 libxrender1:i386 libxshmfence1:i386 libxslt1.1:i386
libxss1:i386 libxt6:i386 libxv1:i386 libxxf86vm1:i386
linux-headers-3.13.0-35 linux-headers-3.13.0-35-generic
linux-image-3.11.0-26-generic linux-image-3.13.0-35-generic
linux-image-extra-3.11.0-26-generic linux-image-extra-3.13.0-35-generic lynx
mpi-default-bin openmpi-bin openmpi-checkpoint openmpi-common skype-bin:i386
tk-table tk8.5 unixodbc

编辑:

sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub   2048g/79164387 2004-09-12

pub   1024D/FBB75451 2004-12-30
uid                  Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>

pub   4096R/C0B21F32 2012-05-11
uid                  Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>

pub   4096R/EFE21092 2012-05-11
uid                  Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>

pub   1024D/3E5C1192 2010-09-20
uid                  Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>

pub   1024R/579F147D 2010-04-25
uid                  Launchpad RKWard Development Archive

pub   2048R/E084DAB9 2010-10-19 [expire : 2015-10-18]
uid                  Michael Rutter <marutter@gmail.com>
sub   2048R/1CFF3E8F 2010-10-19 [expire : 2015-10-18]
好的,我修正了

在突触包管理器中,我看到R-3.1.2安装在以下目录中(可执行文件称为R):/ usr / lib / R / bin / R

当我打字时

which R

它返回:

/usr/local/bin/R

所以R的来源与被更新的路径不一样。
我刚刚复制粘贴新的可执行文件(这是/ usr / lib / R / bin /在好的目录/ usr / local / bin /)。

http://stackoverflow.com/questions/27272149/update-r-version-from-3-0-3-to-3-1-2

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:将R版本从3.0.3更新为3.1.2