MacOSX homebrewでRのインストール
Rもhomebrewでインスールできんかな、とぐぐってみたら brew install r でできる、とあったのでやってみたができなかった。最近変更があったのだろうか、science以下のtapに移動になったみたい。
$ brew tap homebrew/science
$ brew install r
でインストールできる。以下はログ。
$ brew install r
Error: No available formula for r
Searching taps...
josegonzalez/php/abstract-php-extension josegonzalez/php/php54-graphdat josegonzalez/php/php55-pthreads homebrew/dupes/gperf homebrew/science/bam-readcount homebrew/science/raxml
josegonzalez/php/abstract-php josegonzalez/php/php54-igbinary josegonzalez/php/php55-raphf homebrew/dupes/grep homebrew/science/blasr homebrew/science/ray
josegonzalez/php/boris josegonzalez/php/php54-ioncubeloader josegonzalez/php/php55-redis homebrew/dupes/groff homebrew/science/celera-assembler homebrew/science/rml-mmc
josegonzalez/php/composer josegonzalez/php/php54-libvirt josegonzalez/php/php55-riak homebrew/dupes/ncurses homebrew/science/ceres-solver homebrew/science/root
josegonzalez/php/php-code-sniffer josegonzalez/php/php54-mailparse josegonzalez/php/php55-runkit homebrew/dupes/rsync homebrew/science/crfsuite homebrew/science/sratoolkit
josegonzalez/php/php-cs-fixer josegonzalez/php/php54-mcrypt josegonzalez/php/php55-scrypt homebrew/dupes/screen homebrew/science/exonerate homebrew/science/suite-sparse
josegonzalez/php/php-version josegonzalez/php/php54-midgard2 josegonzalez/php/php55-solr homebrew/games/avanor homebrew/science/fasttree homebrew/science/trans-abyss
josegonzalez/php/php53-gearman josegonzalez/php/php54-parsekit josegonzalez/php/php55-tokyotyrant homebrew/games/brogue homebrew/science/fermi homebrew/science/transtermhp
josegonzalez/php/php53-graphdat josegonzalez/php/php54-proctitle josegonzalez/php/php55-uploadprogress homebrew/games/color-code homebrew/science/glimmer3 homebrew/science/triangle
josegonzalez/php/php53-igbinary josegonzalez/php/php54-pthreads josegonzalez/php/php55-varnish homebrew/games/dwarf-fortress homebrew/science/hmmer homebrew/science/trilinos
josegonzalez/php/php53-ioncubeloader josegonzalez/php/php54-raphf josegonzalez/php/php55-xhprof homebrew/games/fairymax homebrew/science/igraph homebrew/science/trinity
josegonzalez/php/php53-libvirt josegonzalez/php/php54-redis josegonzalez/php/phpdocumentor homebrew/games/freeciv homebrew/science/infernal homebrew/science/trnascan
josegonzalez/php/php53-mailparse josegonzalez/php/php54-riak josegonzalez/php/composer-requirement homebrew/games/frobtads homebrew/science/kmergenie homebrew/science/ucsc-genome-browser
josegonzalez/php/php53-mcrypt josegonzalez/php/php54-runkit josegonzalez/php/homebrew-php-requirement homebrew/games/frotz homebrew/science/kraken homebrew/science/velvetoptimiser
josegonzalez/php/php53-midgard2 josegonzalez/php/php54-scrypt josegonzalez/php/phar-building-requirement homebrew/games/homeworlds homebrew/science/masurca homebrew/science/viennarna
josegonzalez/php/php53-proctitle josegonzalez/php/php54-solr josegonzalez/php/phar-requirement homebrew/games/inform6 homebrew/science/mira homebrew/science/vigra
josegonzalez/php/php53-pthreads josegonzalez/php/php54-tokyotyrant josegonzalez/php/php-meta-requirement homebrew/games/netris homebrew/science/mrbayes homebrew/science/voro++
josegonzalez/php/php53-raphf josegonzalez/php/php54-uploadprogress samueljohn/python/ooni-probe homebrew/games/ninvaders homebrew/science/mrfast homebrew/science/xmgredit
josegonzalez/php/php53-redis josegonzalez/php/php54-varnish samueljohn/python/retext homebrew/games/open-tyrian homebrew/science/mummer homebrew/completions/rails-completion
josegonzalez/php/php53-riak josegonzalez/php/php54-xhprof marcqualie/nginx/cache-purge-nginx-module homebrew/games/pioneers homebrew/science/parmetis homebrew/completions/vagrant-completion
josegonzalez/php/php53-runkit josegonzalez/php/php55-gearman marcqualie/nginx/headers-more-nginx-module homebrew/games/robotfindskitten homebrew/science/perf homebrew/binary/grads
josegonzalez/php/php53-scrypt josegonzalez/php/php55-graphdat marcqualie/nginx/openresty homebrew/games/rogue homebrew/science/picard-tools homebrew/binary/monoberry
josegonzalez/php/php53-solr josegonzalez/php/php55-igbinary marcqualie/nginx/redis2-nginx-module homebrew/games/roll homebrew/science/prank homebrew/binary/packer
josegonzalez/php/php53-tokyotyrant josegonzalez/php/php55-libvirt marcqualie/nginx/subs-filter-nginx-module homebrew/games/rom-tools homebrew/science/primer3 homebrew/binary/perforce-proxy
josegonzalez/php/php53-uploadprogress josegonzalez/php/php55-mailparse homebrew/apache/mod_bonjour homebrew/games/supertux homebrew/science/prodigal homebrew/binary/perforce-server
josegonzalez/php/php53-varnish josegonzalez/php/php55-mcrypt homebrew/apache/mod_security homebrew/games/xboard homebrew/science/quicktree homebrew/binary/perforce
josegonzalez/php/php53-xhprof josegonzalez/php/php55-midgard2 homebrew/dupes/apr-util homebrew/science/abyss-explorer homebrew/science/r
josegonzalez/php/php53-zenddebugger josegonzalez/php/php55-parsekit homebrew/dupes/apr homebrew/science/armadillo homebrew/science/radx
josegonzalez/php/php54-gearman josegonzalez/php/php55-proctitle homebrew/dupes/file-formula homebrew/science/arow++ homebrew/science/rainbow
$ brew tap homebrew/science
Cloning into '/usr/local/Library/Taps/homebrew-science'...
remote: Counting objects: 3098, done.
remote: Compressing objects: 100% (1895/1895), done.
remote: Total 3098 (delta 1480), reused 2739 (delta 1182)
Receiving objects: 100% (3098/3098), 660.85 KiB | 311.00 KiB/s, done.
Resolving deltas: 100% (1480/1480), done.
Checking connectivity... done
Tapped 202 formula
$ brew install r
==> Installing dependencies for r: jpeg, libtiff
==> Installing r dependency: jpeg
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.mountain_lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring jpeg-8d.mountain_lion.bottle.tar.gz
🍺 /usr/local/Cellar/jpeg/8d: 18 files, 796K
==> Installing r dependency: libtiff
==> Downloading ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz
######################################################################## 100.0%
######################################################################## 100.0%==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.3 --without-x --disable-lzma --with-jpeg-include-dir=/usr/local/opt/jpeg/include --with-jpeg-lib-dir=/usr/local/opt/jpeg/lib
==> make install
🍺 /usr/local/Cellar/libtiff/4.0.3: 254 files, 3.8M, built in 55 seconds
==> Installing r
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://cran.r-project.org/src/base/R-3/R-3.0.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/r/3.0.2 --with-aqua --enable-R-framework --with-lapack
==> make
==> make install
==> Downloading http://rcompletion.googlecode.com/svn-history/r28/trunk/bash_completion/R
######################################################################## 100.0%
==> Caveats
R.framework was installed to:
/usr/local/opt/r/R.framework
To use this Framework with IDEs such as RStudio, it must be linked
to the standard OS X location:
sudo ln -s "/usr/local/opt/r/R.framework" /Library/Frameworks
To enable rJava support, run the following command:
R CMD javareconf JAVA_CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/r/3.0.2: 1536 files, 55M, built in 14.0 minutes