Giter VIP home page Giter VIP logo

djangorpydemo's Introduction

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

djangorpydemo's People

Contributors

briandk avatar dzhibas avatar onyxfish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

djangorpydemo's Issues

Install didn't work for me.

I'm a beginner with Ubuntu and I've never gotten RPy to work before, so I tired this (it seemed simple), but I got an error that I don't understand.

Can you offer any advice? I think everything is installed correctly, although I had to install pip.

Capture

Also, this command fails:
sudo ln -s /usr/lib/R/lib/libR.so
It says that the shortcut already exists (I'm assuming that's a good thing).

Setting up in Ubuntu 10.04

To install django and r:

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

To solve problem locating shared library:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.