Thank you Laurent! This did it, now it works!
Cheers Oliver
Laurent Gautier <lgaut...@gmail.com> 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.html?
> highlight=evaluate#strings-as-r-code
> and eventually
> http://rpy.sourceforge.net/rpy2/doc/html/robjects.html?
> highlight=evaluate#r-the-instance-of-r
>
>
> L.
>
>
>
> Oliver Tomic wrote:
> > 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 "<pyshell#3>", line 1, in <module>
> > robjects.r['library(epiR)']
> > File "C:\Python25\Lib\site-packages\rpy2\robjects\__init__.py", line
> > 503, in __getitem__
> > res = rinterface.globalEnv.get(item)
> > LookupError: 'library(epiR)' not found
> >
> > Cheers
> > Oliver
> >
> >
> > Oliver Tomic <oliver.to...@nofima.no> wrote on 07.01.2009 10:18:28:
> >
> > > 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.0.0
> > > R 2.8.0
> > >
> > > Thanks for you help!
> > >
> > > Cheers
> > > Oliver
> > >
> >
>
------------------------------------------------------------------------------
> > > Check out the new SourceForge.net Marketplace.
> > > It is the best place to buy or sell services for
> > > just about anything Open Source.
> > >
http://p.sf.net/sfu/Xq1LFB_______________________________________________
> > > rpy-list mailing list
> > > rpy-list@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/rpy-list
> >
> >
> >
------------------------------------------------------------------------
> >
> >
>
------------------------------------------------------------------------------
> > Check out the new SourceForge.net Marketplace.
> > It is the best place to buy or sell services for
> > just about anything Open Source.
> > http://p.sf.net/sfu/Xq1LFB
> >
> >
> >
------------------------------------------------------------------------
> >
> > _______________________________________________
> > rpy-list mailing list
> > rpy-list@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/rpy-list
>
>
>
------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list