Re: [Rpy] Q: how to allude to R variables?

2007-09-05 Thread D. R. Evans
D. R. Evans said the following at 09/05/2007 04:25 PM : > but when I convert these to: > r("attach(d)") > r"(lo <- loess(percent ~ ncms * ds, d, control=loess.control(trace.hat = > 'approximate'))") > > I get: > r("lo <- loess(percent ~ ncms * ds, d, control=loess.control(trace.hat > = '

Re: [Rpy] Q: how to allude to R variables?

2007-09-05 Thread D. R. Evans
D. R. Evans said the following at 09/05/2007 03:59 PM : > Peter said the following at 09/05/2007 03:25 PM : > >> from rpy import r >> r("d <- load('/tmp/dat.R')") >> r("d <- subset(d, web == 'future')") >> print r("d") >> > > Oh, I didn't realise that one could simply write r("r-command-goes-here

Re: [Rpy] Q: how to allude to R variables?

2007-09-05 Thread D. R. Evans
Peter said the following at 09/05/2007 03:25 PM : > from rpy import r > r("d <- load('/tmp/dat.R')") > r("d <- subset(d, web == 'future')") > print r("d") > Oh, I didn't realise that one could simply write r("r-command-goes-here"). In that case I think I'm fine, because I have working R code, so

Re: [Rpy] Q: how to allude to R variables?

2007-09-05 Thread Peter
D. R. Evans wrote: > I have the following piece of R code: > > > > # next line loads a variable called "dat" > load('/tmp/dat.R') > > # make a copy > d <- dat > > # extract the dat$web fields for the future > d <- subset(d, web == 'future') > > > > In rpy, I figured out that the equ

[Rpy] Q: how to allude to R variables?

2007-09-05 Thread D. R. Evans
I have the following piece of R code: # next line loads a variable called "dat" load('/tmp/dat.R') # make a copy d <- dat # extract the dat$web fields for the future d <- subset(d, web == 'future') In rpy, I figured out that the equivalent starts out with: r.load('/tmp/dat.r')

Re: [Rpy] Trivial patch to prevent exception

2007-09-05 Thread Gregory Warnes
Hello Manuzhai (and RPy'ers) I try to be pretty responsive, but have been really busy the last month or so setting up a new company to provide commercial packaging, support and services for R and RPy. Check us out at http://random- technologies-llc.com. I'll take a look at your patches, an

[Rpy] Crashes with latest R, RPy, Python, NumPy on Win XP

2007-09-05 Thread Manuzhai
Right, there I am again... Since my last email, I've been trying to get my own version of RPy (including the two patches that I sent earlier) to run on the Win XP laptops. I've tried the official version as well (this is with Python 2.5.1.1 from ActiveState, NumPy 1.0.3.1 or some such, and R 2.5.1

[Rpy] Trivial patch to prevent exception

2007-09-05 Thread Manuzhai
Hello there, I'm looking at using RPy for a production system for a pretty big financial system, so this might not be the last time I'm emailing this list... I can see from the svn log that development is not that quick, but are the developers (people w/ commit access) paying attention? Well, if