Re: [Rpy] mac os install help

2010-07-14 Thread Daniel Yuan
> >>> 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)] >

Re: [Rpy] RPy2 win xp R plotting

2009-07-21 Thread Daniel Yuan
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

Re: [Rpy] ungraceful quit from R

2009-07-05 Thread Daniel Yuan
> 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

Re: [Rpy] ungraceful quit from R

2009-07-05 Thread Daniel Yuan
>> 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

Re: [Rpy] ungraceful quit from R

2009-07-04 Thread Daniel Yuan
> 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

[Rpy] ungraceful quit from R

2009-07-02 Thread Daniel Yuan
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