Re: [Rpy] rpy on Windows

2009-01-07 Thread Alan G Isaac
On 1/7/2009 5:13 PM Alan G Isaac apparently wrote: > Access to robjects > does not match the documentation Badly put: I should have said that *representation* of robjects does not match the documentation. (And is therefore much less useful.) Alan Isaac --

[Rpy] rpy on Windows

2009-01-07 Thread Alan G Isaac
I installed rpy using the most recent Windows installers. Testing the installation produces 7 failures (not the 2 suggested in the documentation). Access to robjects does not match the documentation at: http://rpy.sourceforge.net/rpy2/doc/html/introduction.html#the-r-instance Example below. Alan

Re: [Rpy] is rpy2 the default supported python module now

2009-01-07 Thread paul jobs
http://www.bitbucket.org/lgautier/rpy2/ Where can i hg pull rpy2 ? the above site is down On 1/7/09, paul jobs wrote: > > Hey guys > should i use rpy or rpy2 > i m learning r language and rpy simultaneously > > thanks a lot for pointers > --

[Rpy] is rpy2 the default supported python module now

2009-01-07 Thread paul jobs
Hey guys should i use rpy or rpy2 i m learning r language and rpy simultaneously thanks a lot for pointers -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anyth

Re: [Rpy] calling R-functions

2009-01-07 Thread Oliver Tomic
Thanks again, Laurent and Anne! This should have been obvious to me. I guess my brain doesn't function propoerly today. Maybe it is time to go home. Thanks again! Cheers Oliver Laurent Gautier wrote on 07.01.2009 14:34:19: > Oliver Tomic wrote: > > Hi again, > > > > I am reading the document

Re: [Rpy] load R-library via rpy2

2009-01-07 Thread Anne Ghisla
Scrive Oliver Tomic : > I forgot to mention that I tried the following with rpy2, but without > success: > > >>> import rpy2.robjects as robjects > >>> robjects.r['library(epiR)'] Hello Oliver, try this: [code] import rpy2.robjects as robjects robjects.r.library("epiR") [/code] or, more like t

Re: [Rpy] calling R-functions

2009-01-07 Thread Laurent Gautier
Oliver Tomic wrote: > Hi again, > > I am reading the documentation but I must be missing something. When I > try this from the documentation everything works fine: > > import rpy2.robjects as robjects > rsum = robjects.r['sum'] > res = rsum(robjects.IntVector([1,2,3])) > > > > Here, however I

[Rpy] calling R-functions

2009-01-07 Thread Oliver Tomic
Hi again, I am reading the documentation but I must be missing something. When I try this from the documentation everything works fine: import rpy2.robjects as robjects rsum = robjects.r['sum'] res = rsum(robjects.IntVector([1,2,3])) Here, however I get an syntax error: import rpy2.robjects

Re: [Rpy] load R-library via rpy2

2009-01-07 Thread Oliver Tomic
Thank you Laurent! This did it, now it works! Cheers Oliver Laurent Gautier wrote on 07.01.2009 11:08:39: > Hi Oliver, > > '(' is not '['. > > Check > http://rpy.sourceforge.net/rpy2/doc/html/introduction.html#calling-r-functions > then > http://rpy.sourceforge.net/rpy2/doc/html/robjects.htm

Re: [Rpy] load R-library via rpy2

2009-01-07 Thread Laurent Gautier
Hi Oliver, '(' is not '['. Check http://rpy.sourceforge.net/rpy2/doc/html/introduction.html#calling-r-functions then http://rpy.sourceforge.net/rpy2/doc/html/robjects.html?highlight=evaluate#strings-as-r-code and eventually http://rpy.sourceforge.net/rpy2/doc/html/robjects.html?highlight=evaluate

Re: [Rpy] load R-library via rpy2

2009-01-07 Thread Oliver Tomic
I forgot to mention that I tried the following with rpy2, but without success: >>> import rpy2.robjects as robjects >>> robjects.r['library(epiR)'] Traceback (most recent call last): File "", line 1, in robjects.r['library(epiR)'] File "C:\Python25\Lib\site-packages\rpy2\robjects\__init_

[Rpy] load R-library via rpy2

2009-01-07 Thread Oliver Tomic
Hi, I am sorry about this trivial question, but what is the obvious way to import a library in R in via rpy2? If I do the following in R: > library(epiR) Package epiR 0.9-14 is loaded Type help(epi.about) for summary information > What is the equivalent in rpy2? Windows XP Python 2.5 rpy2 2