Skip to content

Simple webservice to batch process R scripts

License

Notifications You must be signed in to change notification settings

GarmanGroup/RServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.