Skip to content

Instantly share code, notes, and snippets.

@snewhouse
Created September 13, 2016 16:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snewhouse/749bcc919a6d75e5f063328280703ec3 to your computer and use it in GitHub Desktop.
Save snewhouse/749bcc919a6d75e5f063328280703ec3 to your computer and use it in GitHub Desktop.
Exploratory 1.9.0.1 Linux Ubuntu 16.04 Install Script. Run with ordinary user!
# Exploratory 1.9.0.1 Linux Ubuntu 16.04 Install Script. Run with ordinary user!
sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get install r-base r-base-dev git libssl-dev libpq-dev libxml2-dev libcurl4-openssl-dev libsodium-dev libmariadb-client-lgpl-dev libsasl2-dev
mkdir ~/.exploratory
mkdir ~/.exploratory/R
mkdir ~/.exploratory/R/3.3
cd ~/.exploratory/
curl -O http://download2.exploratory.io/linux/install.R
chmod o+rx ./install.R
# This line bellow would be better to change in the install.R script (satisfies need for R repo specification):
sed -i 's/dependencies=TRUE/dependencies=TRUE, repos="http:\/\/cran.rstudio.com\/"/g' ./install.R
sed -i s/your_os_username/$USER/g ./install.R
Rscript ./install.R
curl -O http://download2.exploratory.io/linux/Exploratory_1.9.0.1_LINUX.zip
cd ~/
unzip .exploratory/Exploratory_1.9.0.1_LINUX.zip
PATH=$PATH:~/Exploratory/
echo "Exploratory Desktop is installed. To start it up, run ~/Exploratory/Exploratory from the Terminal."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment