Orange Pi PCにRをインストールしてみました。
参考にさせて頂いたサイトは,下記のサイトです。
https://www.r-bloggers.com/how-to-install-the-latest-version-of-r-statistics-on-your-raspberry-pi/
重要な点は,source.listにCRANのアドレスを追加することでしょうか。
apt-get installですんなりインストールできました。
Orange Pi PCへRをインストールする記事がなかったので,備忘録としてアップしておきます。
(1)まず最初にupdateをしました。
kinya@orangepipc:~$ sudo apt-get update
[sudo] password for kinya:
(2)CRANを追加
kinya@orangepipc:~$ sudo nanao /etc/apyt/sources.list
以下を追加しました。--
deb http://mirror.las.iastate.edu/CRAN/bin/linux/debian/ jessie main
deb http://mirror.las.iastate.edu/CRAN/bin/linux/ubuntu xenial
–ここまで。
(3)以下,R関係のソフトをインストール
kinya@orangepipc:~$ sudo ap-get install r-base r-base-core r-base-devt
Reading package lists… 0%Reading package lists… 0%Reading package lists… 1%Reading package lists… 16%Reading package lists… 32%Reading package lists… 49%Reading package lists… 65%Reading package lists… 81%Reading package lists… 84%Reading package lists… 84%Reading package lists… 84%Reading package lists… 84%Reading package lists… 85%Reading package lists… 85%Reading package lists… 85%Reading package lists… 85%Reading package lists… 90%Reading package lists… 90%Reading package lists… 90%Reading package lists… 90%Reading package lists… 90%Reading package lists… 90%Reading package lists… 96%Reading package lists… 96%Reading package lists… 96%Reading package lists… 96%Reading package lists… 96%Reading package lists… 96%Reading package lists… 98%Reading package lists… 99%Reading package lists… 99%Reading package lists… 99%Reading package lists… 99%Reading package lists… 99%Reading package lists… 99%Reading package lists… Done
Building dependency tree… 0%Building dependency tree… 0%Building dependency tree… 0%Building dependency tree… 50%Building dependency tree… 50%Building dependency tree… 92%Building dependency tree
Reading state information… 0%Reading state information… 0%Reading state information… Done
The following additional packages will be installed:
cdbs fontconfig fontconfig-config fonts-dejavu-core gfortran gfortran-6
icu-devtools libblas-common libblas-dev libblas3 libbz2-dev libcairo2
libdatrie1 libfontconfig1 libfreetype6 libgfortran-6-dev libgfortran3
libgraphite2-3 libharfbuzz0b libice6 libicu-dev libjbig0 libjpeg-dev
libjpeg62-turbo libjpeg62-turbo-dev liblapack-dev liblapack3 liblzma-dev
libncurses5-dev libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0
libpaper-utils libpaper1 libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5
libpixman-1-0 libpng-dev libreadline-dev libsm6 libthai-data libthai0
libtiff5 libtinfo-dev libtk8.6 libx11-6 libx11-data libxau6 libxcb-render0
libxcb-shm0 libxcb1 libxdmcp6 libxext6 libxft2 libxmuu1 libxrender1 libxss1
libxt6 pkg-config 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-recommended x11-common xauth xdg-utils zip zlib1g-dev
Suggested packages:
devscripts gfortran-doc gfortran-6-doc libgfortran3-dbg libcoarrays-dev
liblapack-doc-man liblapack-doc icu-doc liblzma-doc ncurses-doc readline-doc
tk8.6 ess r-doc-info | r-doc-pdf r-mathlib r-base-html debhelper
texlive-base texlive-latex-base texlive-generic-recommended
texlive-fonts-recommended texlive-fonts-extra texlive-extra-utils
texlive-latex-recommended texlive-latex-extra texinfo gvfs-bin
Recommended packages:
bzip2-doc libpng-tools r-base-html r-doc-html libfile-mimeinfo-perl
libnet-dbus-perl libx11-protocol-perl x11-utils x11-xserver-utils
The following NEW packages will be installed:
cdbs fontconfig fontconfig-config fonts-dejavu-core gfortran gfortran-6
icu-devtools libblas-common libblas-dev libblas3 libbz2-dev libcairo2
libdatrie1 libfontconfig1 libfreetype6 libgfortran-6-dev libgfortran3
libgraphite2-3 libharfbuzz0b libice6 libicu-dev libjbig0 libjpeg-dev
libjpeg62-turbo libjpeg62-turbo-dev liblapack-dev liblapack3 liblzma-dev
libncurses5-dev libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0
libpaper-utils libpaper1 libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5
libpixman-1-0 libpng-dev libreadline-dev libsm6 libthai-data libthai0
libtiff5 libtinfo-dev libtk8.6 libx11-6 libx11-data libxau6 libxcb-render0
libxcb-shm0 libxcb1 libxdmcp6 libxext6 libxft2 libxmuu1 libxrender1 libxss1
libxt6 pkg-config r-base r-base-core r-base-dev 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-recommended x11-common xauth
xdg-utils zip zlib1g-dev
0 upgraded, 85 newly installed, 0 to remove and 22 not upgraded.
Need to get 73.4 MB of archives.
After this operation, 176 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
中略
(4)Rを起動してみました。
kinya@orangepipc~$ R
R version 3.3.3 (2017-03-06) — “Another Canoe”
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: arm-unknown-linux-gnueabihf (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type ‘license()’ or ‘licence()’ for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type ‘contributors()’ for more information and
‘citation()’ on how to cite R or R packages in publications.
Type ‘demo()’ for some demos, ‘help()’ for on-line help, or
‘help.start()’ for an HTML browser interface to help.
Type ‘q()’ to quit R.
>