[Mac] install R :: Homebrew

Published by onesixx on

http://luisspuerto.net/2018/01/install-r-100-homebrew-edition-with-openblas-openmp-my-version/
http://iangow.wordpress.com/2013/05/01/rstudio-server-on-mac-os-x/
installing RStudio Server on Mac OS X suggested by Matt Furia
https://support.rstudio.com/hc/en-us/articles/200552316-Configuring-the-Server
https://www.rstudio.com/products/rstudio/download-server/
http://www.benjack.io/2016/01/02/el-capitan-biocomputing.html

Ready

Environment setting

|➜ vi .zshrc
export LANG=en_US.UTF-8
export LC_ALL=$LANG

Openblas

|➜ blew install openblas

gmp, mpfr, libmpc, isl, gcc 먼저 설치 된 후, openblas설치 

R 설치

우선 brew update로 최신업데이트 후에, 

|➜ brew update
|➜ brew install r --with-openblas

pkg-config, gettext, jpeg, libpng, readline, xz 설치후 /usr/local/bin.에 R binaries 가 relink 된다. 

Packages

설치 팩키지들 gmp, mpfr, libmpc, isl, gcc, readline, gettext, jpeg, libtiff, pcre, libpng, xz, freetype, fontconfig, pixman, libffi, glib, cairo

  • GCC : 여러 언어의 컴파일러 모음 
  • PCRE: Perl Compatible Recular Expression 정규표현식  (pcre, pcre-devel 설치)
  • zlib: 압축 알고그즘 제공. gzip압축 (zlib, zlib-devel)
  • OpenSSL: 고성능 범용 암호 해독 라이브러리

data.table
knitr
rmarkdown

rJava
devtools
tidyverse

# pdf extraction tools
 
brew install poppler
 
sudo Rscript -e ‘install.packages(“pdftools”)’;
 
sudo Rscript -e ‘library(devtools); install_github(“ropensci/tabulizer”)’;

—–

.libPaths()

/usr/local/lib/R/3.4/site-library
/usr/loca/Cellar/r/3.4.4./lib/library

 

버전확인

version
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          2.3                         
year           2015                        
month          12                          
day            10                          
svn rev        69752                       
language       R                           
version.string R version 3.2.3 (2015-12-10)
nickname       Wooden Christmas-Tree   
sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Korean_Korea.949  LC_CTYPE=Korean_Korea.949    LC_MONETARY=Korean_Korea.949 LC_NUMERIC=C                
[5] LC_TIME=Korean_Korea.949    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] dplyr_0.4.3

loaded via a namespace (and not attached):
[1] magrittr_1.5   R6_2.1.2       assertthat_0.1 parallel_3.2.3 DBI_0.3.1      tools_3.2.3    Rcpp_0.12.4   
>
package_version(R.version)
[1] ‘3.2.3’
R.Version()
$platform
[1] "x86_64-w64-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
$status
[1] ""
$major
[1] "3"
$minor
[1] "2.3"
$year
[1] "2015"
$month
[1] "12"
$day
[1] "10"
$`svn rev`
[1] "69752"
$language
[1] "R"
$version.string
[1] "R version 3.2.3 (2015-12-10)"
$nickname
[1] "Wooden Christmas-Tree"

 

sudo chmod -R +w /usr/local

 

 

Categories: R Basic

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x