Created
June 6, 2017 15:48
-
-
Save yarigpopov/ad060eff88b7a3aa882820e50656ed99 to your computer and use it in GitHub Desktop.
RStudio on Mac. May 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew update | |
brew upgrade | |
brew install Caskroom/cask/xquartz | |
logout/login | |
brew tap homebrew/science | |
install R 3.3.3 from CPAN | |
brew install Caskroom/cask/rstudio | |
brew install gtk+ | |
[possibly not needed]export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
brew install cairo | |
add in ~/.shrc: | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:$PKG_CONFIG_PATH | |
Good sign | |
`pkg-config --cflags gtk+-2.0` shows a list of folders | |
install binary rgtk2 | |
install.packages("RGtk2", dependencies = T, type = 'mac.binary.mavericks') | |
++++ | |
3.4.0 didn’t work (doesnt have binary) | |
install.packages("RGtk2", dependencies = T, type = “source” ) throws error about | |
gtk.h | |
maybe try | |
http://stackoverflow.com/questions/22953206/gulp-issues-with-cario-install-command-not-found-when-trying-to-installing-canva/23988317#23988317 | |
add export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig | |
links | |
https://gist.github.com/sebkopf/9405675 | |
https://github.com/Homebrew/legacy-homebrew/issues/13546 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment