Hi Carson,<br><br>Sorry, my mistake, I use R 2.11.0 because in this version the executable are stored in a subdirectory that rpy2 can read. Newer version of R its not working with rpy2. I will try your trick to change the code in the __init__.py but I dont think it would solve my problem. Actually manageR is loading in QGIS but its not working properly.<br><br>Thank you<br>Maxime<br><br><hr id="stopSpelling">Date: Sun, 22 May 2011 06:11:10 -0700<br>From: <a href="/user/SendEmail.jtp?type=node&node=6391522&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><br>To: <a href="/user/SendEmail.jtp?type=node&node=6391522&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>Subject: Re: manageR doesn't work well<br><br>

        Hi Maxime,
<br><br>> Im using manageR 1.0, QGIS 1.7 and 1.6 and R 1.11.0 on Windows 7
<br>Are you sure you're using R 1.11.0? That's a pretty old version! Also,
<br>which version of rpy2 are you using? Furthermore, I attach an email
<br>from another manageR using with a possible solution for Windows 7
<br>issues:
<br><br>I had a problem getting ManageR to run on QGIS 1.60 (OSGeoW4 install)
<br>with R-2.12.1 (32 bit) on Windows 7 64 bit systems. Rpy2 complained
<br>about not finding R.dll.
<br>Newer versions of R place the executable files in a new subdirectory,
<br>i386, below the bin directory on Windows 7 systems.
<br><br>After searching the net for a while, I finally found the following
<br>post, which seems to fix the problem:
<br><a rel="nofollow" target="_blank" link="external">http://www.mail-archive.com/rpy-list@.../msg02779.html</a><br> Try adding these two lines to rinterface/__init__.py
<br>    # Load the R dll using the explicit path
<br>    # First try the bin dir:
<br>    Rlib = os.path.join(R_HOME, 'bin', 'R.dll')
<br>    # Try bin/i386 subdirectory seen in R 2.12.0  ## ADDED ##
<br>    if not os.path.exists(Rlib):                ## ADDED ##
<br>      Rlib = os.path.join(R_HOME, 'bin', 'i386', 'R.dll')  ## ADDED ##
<br>    # Then the lib dir:
<br>    if not os.path.exists(Rlib):
<br>      Rlib = os.path.join(R_HOME, 'lib', 'R.dll')
<br>    # Otherwise fail out!
<br>    if not os.path.exists(Rlib):
<br>      raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)
<br><br>Hope that helps a bit,
<br><br>Carson
<br><br>--
<br>Carson J. Q. Farmer
<br>ISSP Doctoral Fellow
<br>National Centre for Geocomputation
<br>National University of Ireland, Maynooth,
<br><a rel="nofollow" target="_blank" link="external">http://www.carsonfarmer.com/</a><br>_______________________________________________
<br>Qgis-user mailing list
<br><a rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><a rel="nofollow" target="_blank" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
        
        <br>
        <br>
        <hr color="#cccccc" size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a target="_blank" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6391395.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif">
                
                To unsubscribe from manageR doesn't work well, <a target="_blank" rel="nofollow" link="external">click here</a>.
        </div>                                      

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6391522.html">RE: manageR doesn't work well</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/qgis-user-f2036571.html">qgis-user mailing list archive</a> at Nabble.com.<br/>