[pymvpa] RPy and ENET

Per B. Sederberg persed at princeton.edu
Mon Jan 11 13:27:15 UTC 2010


On Mon, Jan 11, 2010 at 8:10 AM, Michael Hanke <michael.hanke at gmail.com> wrote:
> On Mon, Jan 11, 2010 at 08:06:46AM -0500, Per B. Sederberg wrote:
>> > The externals test for GLMNET fails, although I can do:
>> >
>> > michael at meiner:(git)~/hacking/pymvpa.dev:[mh/master]$ R
>> >
>> > R version 2.10.0 (2009-10-26)
>> > Copyright (C) 2009 The R Foundation for Statistical Computing
>> > ISBN 3-900051-07-0
>> >
>> >> library(glmnet)
>> > Loading required package: Matrix
>> > Loading required package: lattice
>> >>
>> >
>> >
>>
>> Hmmmmm.  What happens when you do the following in ipython:
>>
>> import rpy2.robjects
>> rpy2.robjects.r.library('glmnet')
>
> In [1]: import rpy2.robjects
>
> In [2]: rpy2.robjects.r.library('glmnet')
> Loading required package: Matrix
> Loading required package: lattice
> Out[2]: <RVector - Python:0x92c838c / R:0xa825e70>
>
>
> That one seems to be fine.
>

So the exists check for glmnet is:


exists('rpy2', raiseException=True); import rpy2.robjects;
rpy2.robjects.r.library('glmnet')

You just ran the last two and it works.  What happens when you run the
first?  Perhaps it is something in the exists method...  I assume if
you can run the last two, then you can also run:

import rpy2 as __

which is the check for rpy2...

What happens if you change the glmnet check to be just:

import rpy2.robjects; rpy2.robjects.r.library('glmnet')


Best,
P

> Michael
>
> --
> GPG key:  1024D/3144BE0F Michael Hanke
> http://mih.voxindeserto.de
>
> _______________________________________________
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa
>



More information about the Pkg-ExpPsy-PyMVPA mailing list