Skip to content

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

Notifications You must be signed in to change notification settings

Sleepingwell/DjangoRpyDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published