Re: [Rpy] windows install without registry lookups

2009-02-04 Thread James Yoo
not sure about your idea for running the exe, with paths on the commandline... but regarding problems installing the exe and registry flim-flam, this is an issue with the dist_utils python package used to create the rpy installer as I have been informed my guess is that your most sustainable s

Re: [Rpy] assignment to environments in rpy2

2009-02-04 Thread Laurent Gautier
Nathaniel Smith wrote: > On Tue, Feb 3, 2009 at 10:56 PM, laurent wrote: >> On Tue, 2009-02-03 at 13:30 -0800, Nathaniel Smith wrote: >>> why does EnvironmentSexp_ass_subscript (== >>> rpy2.rinterface.SexpEnvironment.__setitem__) copy the value it is >>> storing? >>> >>> PROTECT(sexp_copy = Rf_d

[Rpy] windows install without registry lookups

2009-02-04 Thread Barry Rowlingson
I'm trying to install rpy 1.0.3 for R 2.7.1 and python 2.5 from the exe from sourceforge. On a clean Windows XP VM, first off the installer fails to find MSVCRT71.DLL (so I install various MS .NET runtimes untill I get it). I imagine any Windows machine that's been running a bit has already been

Re: [Rpy] qt function and arguments

2009-02-04 Thread Laurent Gautier
[Just to stress that an issue similar to the one with NA_LOGICAL, fixed with 2.0.2, is *not* present here] 'FALSE' rather than False in the Python code is indeed the cause of the problem, but parameters in the signature of the function are not typed. 'FALSE' is passed to R as a string "FALSE",

Re: [Rpy] qt function and arguments

2009-02-04 Thread laurent oget
'FALSE' is a string, which somehow when converted to a boolean evaluates as True. How do you like: >>> kwargs={'df':25,'lower.tail':False} >>> print ro.r['qt'](0.05, **kwargs) [1] 1.708141 2009/2/4 Lindsey Bangay : > HI > > I am new to rpy2, but I would appreciate some assistance on this probl

[Rpy] qt function and arguments

2009-02-04 Thread Lindsey Bangay
HI I am new to rpy2, but I would appreciate some assistance on this problem I want to calculate the quantile of the t-distribution, using the upper tail: >>>import rpy2.robjects as ro >>>kwargs={'df':25,'lower.tail':'FALSE'} >>>print ro.r['qt'](0.05, **kwargs) but this is what I get : Warning m

Re: [Rpy] assignment to environments in rpy2

2009-02-04 Thread Nathaniel Smith
On Tue, Feb 3, 2009 at 10:56 PM, laurent wrote: > On Tue, 2009-02-03 at 13:30 -0800, Nathaniel Smith wrote: >> why does EnvironmentSexp_ass_subscript (== >> rpy2.rinterface.SexpEnvironment.__setitem__) copy the value it is >> storing? >> >> PROTECT(sexp_copy = Rf_duplicate(sexp)); >> Rf_define