[Rpy] How to use libraries in rpy?

2007-05-12 Thread John Owens
Hopefully a simple question. I installed "RColorBrewer" as a package. It works fine in R, but I can't invoke it properly in RPy. In R, it's invoked as "brewer.xxx", but "r.brewer" is not found by python. It'd be nice if the examples had a library call (I think the faithful one has two library ca

Re: [Rpy] build problems (OS X, MacPorts version of R)

2007-05-12 Thread John Owens
How I eventually got the build working (thanks mucho to Kjell Konis who maintains the R port for MacPorts): + I had to make a small change to setup.py. In the elif + sys.platform=='darwin': block I added 'Rblas' to the libraries. That + is I changed libraries=['R'] to libraries=['R','Rblas']

Re: [Rpy] How to use libraries in rpy?

2007-05-12 Thread John Owens
John Owens yahoo.com> writes: + >>> palette = r.brewer.pal(3, "Greens") + Traceback (most recent call last): + File "", line 1, in ? + File "/opt/local/lib/python2.4/site-packages/rpy.py", line 286, + in __getattr__ + return self.__getitem__(name) + File "/opt/local/lib/python2.