GarmanGroup / RServer

Simple webservice to batch process R scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RServer

A simple client/server web-application for running R scripts and logging and storing output and produced images

Required software

  • webserver with PHP
  • SQL server (ie MySQL)
  • R with packages DBI, RMySQL, Cairo
  • The example environment (defined in the .sql file) uses an existing GraphicsMagick installation to create preview images (command: gm)

optional software:

  • HeidiSQL www.heidisql.com or similar to edit the database directly to create more execution environments
  • further R packages

Notes

  • Deleting a job on the website does neither remove the entry from the database, nor delete the images. It only hides the job.
  • Sometimes R acts up, and stops running graphicsmagick. Restart the R server if this happens.

Warning

Do not run this on a publically accessible webserver. The server does not include any authentication methods, so it essentially allows anyone to run any commands on your machine. Ideally you want to set up your webserver to only serve to localhost, and then use e.g. an SSH-tunnel to access the service. As an absolute minimum you should set up your webserver to ask for a username and password. You have been warned.

About

Simple webservice to batch process R scripts

License:MIT License


Languages

Language:PHP 81.8%Language:R 17.9%Language:Shell 0.3%