우분투 R 설치

  다른 뜻에 대해서는 CentOS R 설치 문서를 참조하십시오.
우분투16 R 설치

1 확인[ | ]

jmnote@zetawiki:~$ R --version
-bash: R: command not found
jmnote@zetawiki:~$ apt list r-base
Listing... Done
r-base/xenial,xenial 3.2.3-4 all

2 설치[ | ]

jmnote@zetawiki:~$ sudo apt install r-base
sudo apt install r-base
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bzip2-doc cdbs dh-translations gfortran gfortran-5 intltool libauthen-sasl-perl
  libblas-common libblas-dev libblas3 libbz2-dev libdrm-amdgpu1 libdrm-intel1
  libdrm-nouveau2 libdrm-radeon1 libelf1 libfile-basedir-perl libfile-desktopentry-perl
  libfile-listing-perl libfile-mimeinfo-perl libfont-afm-perl libfontenc1 libgfortran-5-dev
  libgfortran3 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libhtml-form-perl
  libhtml-format-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-negotiate-perl libice6 libio-socket-ssl-perl libipc-system-simple-perl
  libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev liblapack-dev liblapack3 libllvm3.8
  liblwp-protocol-https-perl liblzma-dev libmailtools-perl libncurses5-dev libnet-dbus-perl
  libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libpciaccess0 libpng12-dev
  libreadline-dev libreadline6-dev libsm6 libtcl8.6 libtie-ixhash-perl libtinfo-dev
  libtk8.6 libtxc-dxtn-s2tc0 libwww-perl libwww-robotrules-perl libx11-protocol-perl
  libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-shape0
  libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxinerama1
  libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxrandr2
  libxshmfence1 libxss1 libxt6 libxv1 libxxf86dga1 libxxf86vm1 python-scour r-base-core
  r-base-dev r-base-html r-cran-boot r-cran-class r-cran-cluster r-cran-codetools
  r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass r-cran-matrix r-cran-mgcv
  r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-doc-html
  r-recommended x11-utils x11-xserver-utils xdg-utils zip
Suggested packages:
  devscripts gfortran-multilib gfortran-doc gfortran-5-multilib gfortran-5-doc
  libgfortran3-dbg libdigest-hmac-perl libgssapi-perl liblapack-doc-man liblapack-doc
  libcrypt-ssleay-perl liblzma-doc ncurses-doc readline-doc tcl8.6 tk8.6
  libauthen-ntlm-perl libunicode-map8-perl libunicode-string-perl xml-twig-tools
  python-rsvg python-cairo ess r-doc-info | r-doc-pdf r-mathlib texlive-base
  texlive-latex-base texlive-generic-recommended texlive-fonts-recommended
  texlive-fonts-extra texlive-extra-utils texlive-latex-recommended texlive-latex-extra
  texinfo mozilla | www-browser mesa-utils nickle cairo-5c xorg-docs-core gvfs-bin
The following NEW packages will be installed:
  bzip2-doc cdbs dh-translations gfortran gfortran-5 intltool libauthen-sasl-perl
  libblas-common libblas-dev libblas3 libbz2-dev libdrm-amdgpu1 libdrm-intel1
  libdrm-nouveau2 libdrm-radeon1 libelf1 libfile-basedir-perl libfile-desktopentry-perl
  libfile-listing-perl libfile-mimeinfo-perl libfont-afm-perl libfontenc1 libgfortran-5-dev
  libgfortran3 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libhtml-form-perl
  libhtml-format-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-negotiate-perl libice6 libio-socket-ssl-perl libipc-system-simple-perl
  libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev liblapack-dev liblapack3 libllvm3.8
  liblwp-protocol-https-perl liblzma-dev libmailtools-perl libncurses5-dev libnet-dbus-perl
  libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libpciaccess0 libpng12-dev
  libreadline-dev libreadline6-dev libsm6 libtcl8.6 libtie-ixhash-perl libtinfo-dev
  libtk8.6 libtxc-dxtn-s2tc0 libwww-perl libwww-robotrules-perl libx11-protocol-perl
  libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-shape0
  libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxinerama1
  libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxrandr2
  libxshmfence1 libxss1 libxt6 libxv1 libxxf86dga1 libxxf86vm1 python-scour r-base
  r-base-core r-base-dev r-base-html r-cran-boot r-cran-class r-cran-cluster
  r-cran-codetools r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass
  r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial
  r-cran-survival r-doc-html r-recommended x11-utils x11-xserver-utils xdg-utils zip
0 upgraded, 115 newly installed, 0 to remove and 52 not upgraded.
Need to get 70.5 MB of archives.
After this operation, 285 MB of additional disk space will be used.
Do you want to continue? [Y/n]
... (생략)
Setting up r-cran-spatial (7.3-11-1) ...#############################################....] 
Setting up r-cran-codetools (0.2-14-1) ...
Setting up r-recommended (3.2.3-4) ...
Setting up r-base (3.2.3-4) ...######################################################....] 
Setting up liblzma-dev:amd64 (5.1.1alpha+20120614-2ubuntu2) ...
Setting up r-doc-html (3.2.3-4) ...
Setting up x11-utils (7.7+3) ...######################################################...] 
Setting up x11-xserver-utils (7.7+7) ...
Setting up libauthen-sasl-perl (2.1600-1) ...##########################################..] 
Setting up r-base-html (3.2.3-4) ...
Setting up liblwp-protocol-https-perl (6.06-2) ...
Setting up libwww-perl (6.15-1) ...####################################################..] 
Setting up libxml-parser-perl (2.44-1build1) ...
Setting up intltool (0.51.0-2) ...
Setting up dh-translations (129) ...####################################################.] 
Setting up cdbs (0.4.130ubuntu2) ...
Setting up libxml-twig-perl (1:3.48-1) ...
Setting up libnet-dbus-perl (1.1.0-3build1) ...##########################################] 
Setting up r-base-dev (3.2.3-4) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...

3 확인 2[ | ]

jmnote@zetawiki:~$ apt list r-base
Listing... Done
r-base/xenial,xenial,now 3.2.3-4 all [installed]
jmnote@zetawiki:~$ R --version
R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}