[Rpy] Problems of installing rpy2.2.2 under python3.2.1

2011-07-31 Thread Peng Lian
Hi, When I build rpy2.2.2 using the command "python setup.py build", I have got some errors ,that is, AttributeError: 'NoneType' object has no attribute 'groups'. Please tell me how to solve this. I use archlinux, the system information: Linux Archlinux 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 14

Re: [Rpy] Problems of installing rpy2.2.2 under python3.2.1

2011-07-31 Thread Peng Lian
At 2011-08-01 13:19:23,"Laurent Gautier" wrote: The setup script meets something unexpected regarding the R version. What does "R --version" return ? I check out the source code of R in recently svn repository, and compile by abs script in archlinux. The R version information: R> version

Re: [Rpy] Problems of installing rpy2.2.2 under python3.2.1

2011-08-01 Thread Peng Lian
ot;. L. On 2011-08-01 08:34, Peng Lian wrote: At 2011-08-01 13:19:23,"Laurent Gautier" wrote: The setup script meets something unexpected regarding the R version. What does "R --version" return ? I check out the source code of R in recently svn repository, and compile by abs

Re: [Rpy] Problems of installing rpy2.2.2 under python3.2.1

2011-08-01 Thread Peng Lian
on. Until I fix it, you have to either rely on R-2.13 (latest release) or hack setup.py yourself to bypass the version check. On 2011-08-01 09:38, Peng Lian wrote: R --version R Under development (unstable) (2011-07-27 r56513) Copyright (C) 2011 The R Foundation for Statistical Computing ISB

[Rpy] ImportError for rpy2-2.3.3

2013-03-06 Thread Peng Lian
Hi all, I just compile the new rpy2-2.3.3 version. But i encounter a importerror when *import rpy2.robjects as ro*. The error message is: --- ImportError Traceback (most recent call last) in ()

[Rpy] LibraryError when import foreign package under Rpy2-2.3.3

2013-03-08 Thread Peng Lian
Hi, all When I import R library *foreign* using the following code: In [12]: import rpy2.robjects as ro In [13]: foreign_lib = ro.packages.importr('foreign') An error message is shown: LibraryError Traceback (most recent call last) in () > 1 foreign_lib = ro.pac

Re: [Rpy] Help with passing 'na.rm' to R functions?

2013-04-29 Thread Peng Lian
base.max = SignatureTranslatedFunction(base.max, init_prm_translate={'na_rm': 'na.rm'}) data_series = robjects.IntVector( [1, 7, robjects.NA_Integer, 9, 2]) print(data_series) [1] 1 7 NA 9 2 print(base.max(data_series, na_rm=True)) [1] 9 So it works I'm new in RPy2, and i don't k