I have been looking for a guide to install R-Script and (in particular) RMySQL on a laravel homestead vagrant box. However the documentation I have found has either been for windows OS's or has failed before installing the RMySQL package.
So my question is this: How do I go about installing R Script and RMySQL onto a "homestead" vagrant box?
The steps I have already followed are as follows:
> 1) vagrant up
> 2) vagrant ssh
> 3) sudo apt_get install r-base
> 4) sudo apt-get install r-base-dev
> 5) sudo apt-get update
> -bash: syntax error near unexpected token '"RMySQL"'
Have Homebrew installed
brew tap homebrew/science brew install r
Listen to your computer's fan for a while
For installing on a Vagrant box, open a Terminal window using Vagrant Manager, then follow the instructions below.
Add the R repository to aptitude
sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'
Add its GPG key so that you don't get cert errors
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install r-base
First install libmysqlclient
sudo apt-get install libmysqlclient-dev sudo apt-get install r-cran-rmysql
Then Run R to enter a REPL