A Linux based verifier for the R language. This project allows R code to be submitted to the web server via POST and allows the output to be verified and tested. This project is intended for an open lab setting as a public computing appliance.
To install this project on Amazon's Elastic Computing Cloud (EC2), perform these steps:
- Launch new Ubuntu 12.04 image
- Connect via SSH using public/private keys
- Install neccessary packages with: sudo apt-get install nginx r-base-core python-setuptools git-core
- Install web.py python package: sudo easy_install web.py
- Get latest assets: git clone git://github.com/jpelster/R-verifier.git
- Copy config for nginx: sudo cp R-verifier/conf/nginx/default /etc/nginx/sites-available/default
- Make working directory: mkdir /tmp/R-verifier
- Update perms: chmod 777 /tmp/R-verifier
- Change group: sudo chgrp www-data /tmp/R-verifier
- Make sure group can always read: chmod g+s /tmp/R-verifier
- Restart nginx: service nginx restart
- Start R backend server: cd R-verifier; nohup python R-verifier.py > /tmp/R-verifier.log 2>&1 &
- Load public URL in browser: [example: http://ec2-aa-bb-ccc-ddd.compute-1.amazonaws.com]
- Have fun!
If left unchecked, the /tmp partition will get full. A cron job that regularly deletes old files will be neccesary to prevent this problem.