A very simple django site for demonstrating the use of rpy for plotting
Python CSS
Failed to load latest commit information.
static Added results directory in so project works out of the box. Feb 7, 2012
templates 'Improved' initial load state. Feb 8, 2012
.gitignore Initial commit Feb 3, 2012
__init__.py Initial commit Feb 3, 2012
manage.py Update for Django versions > 1.6. Oct 5, 2014
settings.py Small changes to make demo work out of the box. Feb 3, 2012
urls.py Update for Django versions > 1.6. Oct 5, 2014



If you have Django and rpy2 installed, you should be able to just run:

python manage.py runserver

in the top level directory to get this going.

If you don't have Rpy2 installed, then you need to have pyRserve and the R package Rserve installed and Rserve running before making the above call.

Note that the R shared library is not reentrant and hence should not accessed from multiple threads. It is also worth noting that one should not assume anything about the state of R's global workspace between requests.

Notes for Linux

gonavald and dzhibas note that on linux: you can install django, R and Rpy2 with:

sudo pip install django
sudo apt-get install r-base-core
sudo pip install rpy2

and to make the R shared library available:

cd /usr/lib/
sudo ln -s /usr/lib/R/lib/libR.so