Vagrant based environment propelled by chef-solo which gives you working RStudio server environment.
RStudio server setup with VirtualBox
-
Install VirtualBox from https://www.virtualbox.org/wiki/Downloads
-
Install Vagrant from https://www.vagrantup.com/downloads.html
-
Install chef development kit https://downloads.chef.io/chef-dk/
-
Install Vagrant plugin vbguest https://github.com/dotless-de/vagrant-vbguest
vagrant plugin install vagrant-vbguest
-
Install Vagrant plugin berks https://github.com/berkshelf/vagrant-berkshelf
vagrant plugin install vagrant-berkshelf
-
Clone this repository
git clone https://github.com/tboloo/vagrant-rstudio
-
Adjust username and email in vagrant-rstudio/chef/cookbooks/R/attributes/default.rb to mathc yours
default['git']['username'] = ‘ruser’ #put your name here default['git']['email'] = ‘ruser@email.com’ # put your email here
-
Run
vagrant up
in the directory where the cloned files are -
If there are any issues during the provisionining process run
vagrant reload
andvagrant provision
-
Browse to http://172.16.33.10/ and enjoy working RStudio using default credentials
login: ruser password: ruser
To change RStudio server address update Vagrant file and change
config.vm.network "private_network", ip: "172.16.33.10"
to some other address, and issuevagrant reload
-
Setup GitHub account, and configure it in RStudio
- Open RStudio page at http://172.16.33.10/ and log in
- Go to Tools -> Global Options -> Git/SVN and select
View public key
- Copy contents and add it to your GitHub SSH keys
- Setup project with git versioning control https://support.rstudio.com/hc/en-us/articles/200532077-Version-Control-with-Git-and-SVN
- Open Git->Shell and run git push -u origin master (which will create link between local repository and github one) Enjoy!