Skip to content

Instantly share code, notes, and snippets.

@dettmering
Last active August 31, 2015 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dettmering/f8633010932035ef2401 to your computer and use it in GitHub Desktop.
Save dettmering/f8633010932035ef2401 to your computer and use it in GitHub Desktop.
Compile R on Raspberry Pi
#!/bin/bash
# This can take a while. Run in a screen environment.
# Modify for the version you want to install.
RVERSION=3.2.2
sudo apt-get install screen gfortran libreadline6-dev libx11-dev libxt-dev
cd ~
mkdir R_HOME
cd R_HOME/
wget http://cran.rstudio.com/src/base/R-3/R-$RVERSION.tar.gz
tar zxvf R-$RVERSION.tar.gz && rm R-$RVERSION.tar.gz
cd R-$RVERSION/
./configure && make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment