Wednesday, October 7, 2015

Re: Using Django and R in a production environment?

One option is to use the conda package manager (you can get that here) to create an environment with 
`conda create --name django+r django=1.8`
activate it with
`source activate django+r`
And then install R packages with something like
`conda install --channel https://conda.anaconda.org/r r-data.table`

You can of also use conda to install pandas and, if you want a bunch of data science libraries at once, you can download the full Anaconda distribution.

On Wed, Oct 7, 2015 at 11:42 AM, Mike Covington <mfcovington@gmail.com> wrote:
Not sure if this approach is useful for you, but the following is how we use R and Django together.

We use R to build Shiny apps. These are served on their default port 3838 (which users never actually go to directly). I've made a Django app to manage the Shiny apps and simply place them in an iframe.


On Saturday, October 3, 2015 at 8:55:38 AM UTC-7, Chanat Praserthdam wrote:
Hi Derek,

Did you find the solution to your problem?
I ran to a similar issue.  I am wondering if RServe will work for me.


On Tuesday, April 30, 2013 at 12:40:01 PM UTC-7, Derek wrote:
Thanks Nick; RStudio looks like a really good tool for development work.

The impression I get though, is that the server is designed for allowing interactive R sessions over the web; whereas for us Django is the primary requirement and calls to R should happen "behind the scenes". 

On Tuesday, 30 April 2013 15:43:01 UTC+2, Nick Santos wrote:
Is Django a hard and fast requirement? If so, is it just about integrating the routines? I think otherwise something like RStudio Server would work for you. I've deployed it previously and it was a pretty nice setup. It's based on Unix user accounts, so R processes run as if users were running them on a desktop, except not. You may be able to share code in this environment too, but I haven't played with it a ton.

http://www.rstudio.com/ide/docs/server/getting_started

-Nick

On Tue, Apr 30, 2013 at 12:06 AM, Derek <game...@gmail.com> wrote:
" if you write your own R  analysis routines, why have them run in a web system"

Two issues here:

1. We are writing R routines for someone else; who needs 'analysis on demand'
2. A web system means that multiple users in multiple locations can all readily access the same analysis routines (but with different data sets)

I agree that if you work on a desktop, with no need to access shared data or use the same analysis routines as anyone else, then a web interface makes no sense.

Basically we are trying to harness two disparate systems; each of which is very powerful in their own sphere, to create an application that is really useful for better and more efficient science.


On 29 April 2013 16:59, Javier Guerra Giraldez <jav...@guerrag.com> wrote:
On Mon, Apr 29, 2013 at 2:13 AM, Derek <game...@gmail.com> wrote:
> hat no one is actually using R in a production environment themselves (which
> is a little surprising to me).


well R itself is widely used in production... but the intersection
with Django is very small.  (after all, if you write your own R
analysis routines, why have them run in a web system)

--
Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/24469c91-e641-4361-be6d-9c90fe0f4bf0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2By5TLbQ8r0uCfeK_YS3RkOcE3LY_4DzRkW7QeAJqPTOS8gYBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment