[pymvpa] RPy and ENET

Per B. Sederberg persed at princeton.edu
Mon Dec 21 20:19:41 UTC 2009


Hi Tara & Yarik:

I'm happy to take care of the move to rpy2, but it'll have to wait
until right after the new year.

happy holidays,
per

On 12/21/09, Yaroslav Halchenko <debian at onerussian.com> wrote:
> Hi Tara,
>
> Unfortunately switch to (support of) Rpy2 is only in our plans and we
> haven't touched it at all yet.
>
> I will check it out later on today if we could just use
> rpy-compatibility layer in rpy2 for now... I will update you
>
> On Mon, 21 Dec 2009, Tara Gilliam wrote:
>
>> Hello,
>
>> When I try to import the ENET classifier, I get an dependency error
>> about rpy being unavailable (PyMVPA version 0.4.3).
>
>> I can 'import rpy2', but not 'import rpy' - is it definitely the
>> original RPy that is required, or will RPy2 also work? The system I
>> am on is university-administered with RPy2 installed, and rpy does
>> not work with our current version of R. So if possible I would
>> prefer not having to install a lot of (unsupported) dependencies for
>> just this classifier item.
>
>> Looking further, the segment of code seems to be this (clfs/enet.py, lines
>> 18-22):
>
>> # do conditional to be able to build module reference
>> if externals.exists('rpy', raiseException=True) and \
>>    externals.exists('elasticnet', raiseException=True):
>>     import rpy
>>     rpy.r.library('elasticnet')
>
>
>> From the Rpy2 documentation, there seems to be a sort of Rpy-compatible
>> mode:
>> from http://rpy.sourceforge.net/rpy2/doc/html/rpy_classic.html, allowing
>> e.g.
>
>> import rpy2.rpy_classic as rpy
>> rpy.r.library('splines')
>
>> Do you know of any (e.g. version-specific) issue that would prevent
>> a local patch to the import statement from working here? Are there
>> any plans to switch PyMVPA to RPy2?
>
>> Many thanks,
>> Tara
>
>
>> _______________________________________________
>> Pkg-ExpPsy-PyMVPA mailing list
>> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa
>
>
> --
>                                   .-.
> =------------------------------   /v\  ----------------------------=
> Keep in touch                    // \\     (yoh@|www.)onerussian.com
> Yaroslav Halchenko              /(   )\               ICQ#: 60653192
>                    Linux User    ^^-^^    [175555]
>
>
>
> _______________________________________________
> 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