Re: [Rpy] Rpy on Mac

2008-06-25 Thread John Reid
Warnes, Gregory R. wrote: > Try locating the libR.dylib file and then placing the exact correct > directory in the LD_LIBRARY_PATH environment variable. Just in case this is relevant: On my MAC I needed to use the DYLD_LIBRARY_PATH rather than the LD_LIBRARY_PATH common on UNIXes I've used befo

[Rpy] Indexing data frames and matrices

2008-06-23 Thread John Reid
Is there any support for the following R functionality through rpy? L3 <- LETTERS[1:3] (d <- data.frame(cbind(x=1, y=1:10), fac=sample(L3, 10, replace=TRUE))) # The ability to do this indexing is what I would like... d[,2] Also I would like to subset a data frame by its values, i.e. in R subset

[Rpy] Pickling support

2008-05-15 Thread John Reid
Hi, I know more about python than R and I'm wondering is there any pickling support in rpy? If there isn't, is there any scope for providing some? I've used r.dput a few times to persist some R objects but it would be very useful if there was a more transparent way to do this. Anyone got any t

Re: [Rpy] Install successfully once, but fail afterward

2008-05-15 Thread John Reid
I think if you set your LD_LIBRARY_PATH environment variable to include the directory where libR.so has been installed you might get some joy. John. - This SF.net email is sponsored by: Microsoft Defy all challenges. Micr

Re: [Rpy] undefined symbol: KillAllDevices

2008-05-12 Thread John Reid
Well I seemed to have fixed it by changing the call to KillAllDevices() in rpymodule.c to Rf_KillAllDevices() as is defined in libR.so. Perhaps there's a better way? Thanks for a great rpy package BTW, John. John Reid wrote: > I get this error when I import rpy: > /usr/local/li

[Rpy] undefined symbol: KillAllDevices

2008-05-12 Thread John Reid
I get this error when I import rpy: /usr/local/lib/python2.5/site-packages/_rpy2070.so: undefined symbol: KillAllDevices RPy module can not be imported. Please check if your rpy installation supports R 2.7.0. If you have multiple R versions installed, you may need to set RHOM

Re: [Rpy] RPy & Windows install and import problems

2007-11-29 Thread John Reid
Hi, Manuzhai's patch works for me. I ended up using     gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) although I don't think that made a difference. I didn't compile R, I'm just using the 2.6 binary version. Hope this info is useful, John. Brian Miles wrote: He

[Rpy] R 2.6.0 rpy 1.0.0 Windows python 2.5

2007-11-22 Thread John Reid
I get the silent Windows crash after downloading the rpy 1.0.0 package and running: python setup.py build --compile=mingw32 install python >>> import rpy I'm updating mingw32 to see if this makes a difference. Will rpy work with R 2.6.0? I see no mention of which versions of R are supported.