Install packages that are needed by Kick-R.
$ sudo apt-get install git make bundler unzip
$ cd /usr/local/bin
$ wget https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip
$ wget https://releases.hashicorp.com/terraform/0.6.7/terraform_0.6.7_linux_amd64.zip
$ sudo unzip -x packer_0.8.6_linux_amd64.zip
$ sudo unzip -x terraform_0.6.7_linux_amd64.zip
Set up environment value for AWS KEY.
$ export AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
$ export AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
T.B.D.
T.B.D.
Run command "make login" to boot and login R instance on AWS.
$ git clone https://github.com/centillion-tech/kick-r.git
$ cd kick-r
$ make
$ make ssh-config > ~/.ssh/config
$ ssh kick-r
ubuntu@ip-10-189-135-202:~$ R --version | head -1
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
If you want to use Emacs ESS mode for remote R process (detail), and run R process with M-x R and simply type /ssh:kick-r:.
After all, run command "make distclean" to shutdown the R instance.
$ make distclean
Create an AMI that includes R environment on AWS.
Boot an AWS instance using the AMI. After running the command, ssh connection of the AWS instance is ready. And the AWS instance has already have R environment.
Login the AWS instance.
Print config for .ssh/config.
$ make ssh-config > ~/.ssh/config
$ slogin kick-r
Run R script at the AWS instance.
$ make job R=~/some/where/foo.R
Shutdown the AWS instance.
Remove the AMI.
The MIT License (MIT)
Copyright (c) 2015 Centillion Japan Co.,Ltd.