Sleepingwell / DjangoRpyDemo

A very simple django site for demonstrating the use of rpy for plotting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

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

About

A very simple django site for demonstrating the use of rpy for plotting


Languages

Language:Python 68.1%Language:CSS 31.9%