> >>> import rpy
> >>> dir()
> ['__builtins__', '__doc__', '__name__', '__package__', 'numpy', 'rpy', 'sys']
>
> It seems like it loads, throws no errors , and the install seemed clean
> But it cannot find the function r.
> see below:
> >>> values = [r.dchisq(x, 4) for x in r.seq(0, 10, by=0.1)]
>
On Jul 21, 2009, at 11:45 AM, wayne jones wrote:
However if I run this script line by line in the python terminal
window then
the graphics appears but no graph is displayed and when I try to
move or resize the
plot it fails and eventually crashes Python.
Perhaps this is a clue: On Mac OS X
> The normal R command line is just a program that loads up the core R
> code -- some functions written in C that knows how to evaluate code
> written in R, and wraps a UI around them. rpy2 loads up that same core
> R code, but into a Python process instead. So you can think of it as
> turning your
>> In conclusion, I don't get it :-)
>
> I am not any better than Nathaniel: without you telling a little
> more of what you are trying to achieve, I am left puzzled.
When I execute 'import rpy2.robjects as robjects', I thought Python
was spawning a subprocess for R. Quitting the child proces
> I have just added something in the documentation for 2.1-dev
> http://rpy.sourceforge.net/rpy2/doc-dev/html/callbacks.html#clean-up
> That will hopefully be enough to get you started.
Still no joy:
xn...@work:~> python
Python 2.5.2 (r252:60911, Nov 26 2008, 00:44:29)
[GCC 4.0.1 (Apple Inc. buil
I'm following up on bug 2776713 re. how to set a cleanup callback
using setCleanUp
(https://sourceforge.net/tracker/?func=detail&aid=2776713&group_id=48422&atid=453021
).
The only place I saw 'setCleanUp' defined was in 'rpy2/rpy/rinterface/
rinterface.c'. I assume this is *not* the place to