documentation need some modification

Python 2.4.4 (#1, Mar 11 2008, 23:13:49)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy2.robjects as robjects
>>>
>>> robjects.r['pi']
<RVector - Python:0xb7ec0fec / R:0x95f91e8>
>>> pi
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'pi' is not defined
>>> robjects.r('pi')
<RVector - Python:0xb7ed472c / R:0x95f91e8>
>>> print robjects.r('pi')
[1] 3.141593
>>> str(robjects.r('pi'))
'[1] 3.141593'
>>> repr(robjects.r('pi'))
'<RVector - Python:0xb7ed4a6c / R:0x95f91e8>'
>>>
it seems getting more object-oriented:)

On Tue, Jun 9, 2009 at 12:43 AM, Daofeng Li <lid...@gmail.com> wrote:

> solved:)
>
> ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2
>
> sorry for disturb
> again can anyone give some hit on how to do binmol.test with RPy2?
>
> thank you:)
>   On Tue, Jun 9, 2009 at 12:31 AM, Daofeng Li <lid...@gmail.com> wrote:
>
>> Dear list owner and members,
>>
>> i am just new to python and R
>> i am trying to install Rpy2 right now on a linux box host centos 4.5 with
>> python 2.4  and R 2.7.0 installed
>> the installation is sucessful
>> but when i do the example test, some error occurs:
>>
>> Python 2.4.4 (#1, Mar 11 2008, 23:13:49)
>> [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import rpy2.tests
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in ?
>>   File "/usr/local/lib/python2.4/site-packages/rpy2/tests.py", line 3, in
>> ?
>>     import rpy2.robjects.tests
>>   File "/usr/local/lib/python2.4/site-packages/rpy2/robjects/__init__.py",
>> line 12, in ?
>>     import rpy2.rinterface as rinterface
>>   File
>> "/usr/local/lib/python2.4/site-packages/rpy2/rinterface/__init__.py", line
>> 66, in ?
>>     from rpy2.rinterface.rinterface import *
>> ImportError: libiconv.so.2: cannot open shared object file: No such file
>> or directory
>> >>> import unittest
>> >>>
>>
>>
>> so what reson might cause this?
>> i would like to do a binmol.test in a python script,providing 4 number as
>> options and get a p-value and fdr ajust p-alue
>>
>> i am hoping anyone could help me.
>> any reply will be very appreciate.
>>
>> Best Regards.
>>
>> --
>> Daofeng Li,PhD Candidate
>> China Agricultural University
>>
>
>
>
> --
> Daofeng Li,PhD Candidate
> China Agricultural University
>



-- 
Daofeng Li,PhD Candidate
China Agricultural University
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to