Skip to content
Prev 252 / 7420 Next

Why use Rpy?

Hi Phil,
The main reason would be for accessing R functionality in 
broader applications. Python does use a more efficient
memory model than R, however when using R functions
through rpy, R will still make copies with assignment within
called R functions, so I am not clear that there is any
gain on that front. Python is a very structured
language and is perhaps more consistent under the hood than
R is with its many legacy hiccups due to the next letter in
the alphabet. Also python has a cleaner object model than s4.

So really it is a nice mechanism to access R functionality from python
programs. So for creating plots in web applications using django,
or using other python treats that are much further developed than in
R.

Hope this helps

Nicholas