On Wed, Oct 27, 2010 at 9:26 PM, Deschamps, Benjamin
<benjamin.descha...@agr.gc.ca> wrote:
> Peter,
>
> If you re-read my original post, you can see that that location was
> already included in my path... But I agree, I think that rpy2 is
> expecting the R.dll to be in C:\Program Files\R\R-2.12.0\bin and is not
> finding it... Is there a fix for this (besides rolling back to an older
> version of R)? Thanks,
>
> Benjamin

So you did, sorry I missed that.

Try adding these two lines to rinterface/__init__.py

    # Load the R dll using the explicit path
    # First try the bin dir:
    Rlib = os.path.join(R_HOME, 'bin', 'R.dll')
    # Try bin/i386 subdirectory seen in R 2.12.0  ## ADDED ##
    if not os.path.exists(Rlib):                ## ADDED ##
        Rlib = os.path.join(R_HOME, 'bin', 'i386', 'R.dll')  ## ADDED ##
    # Then the lib dir:
    if not os.path.exists(Rlib):
        Rlib = os.path.join(R_HOME, 'lib', 'R.dll')
    # Otherwise fail out!
    if not os.path.exists(Rlib):
        raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)

Peter

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to