Good day and thank you Vaclav,<br><br>I added R folder in the PATH environment variable but its not helping me with my problem. Actually, manageR can be loader correctly in QGIS but when I try to import a shapefile with the tool Import Layer from Canvas, I cannot perform analysis on this data. It seems manageR cannot load the data which is a simple polygon shapefile with an attribute table of strings and numbers. When I type ls() or objects() in manageR I got the awnser character(0) which means there is no variable loaded.<br><br>Im on Windows 7 32bit, QGIS 1.7.0 R 2.11.0 and Rpy2 2.0.3-1<br><br>Anybody have successfuly performed an analysis on a shapefile with manageR ?<br><hr id="stopSpelling">Date: Mon, 23 May 2011 02:42:11 -0700<br>From: <a href="/user/SendEmail.jtp?type=node&node=6394931&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><br>To: <a href="/user/SendEmail.jtp?type=node&node=6394931&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>Subject: RE: manageR doesn't work well<br><br>
Hi,
<br><br>a very common source of problems with R and QGIS is not having the
<br>"bin" folder of C:\Program Files\R-x.y in your PATH environment
<br>variable. It is necessary and not created by R installation
<br>automatically.
<br><br>Vaclav
<br><br>2011/5/22 Carson Farmer <<a href="http:///user/SendEmail.jtp?type=node&node=6393737&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>>:
<div class="ecxshrinkable-quote"><div class='shrinkable-quote'><br>> hmm, Ok, well the only other thing I can think of is that you might
<br>> need to install the following packages:
<br>>
<br>> install.packages(c("sp", "rgdal"))
<br>>
<br>> Carson
<br>>
<br>> On Sun, May 22, 2011 at 3:22 PM, burton449 <<a href="http:///user/SendEmail.jtp?type=node&node=6393737&i=1" rel="nofollow" target="_blank" link="external">[hidden email]</a>> wrote:
<br>>> Hi Carson,
<br>>>
<br>>> Sorry, my mistake, I use R 2.11.0 because in this version the executable are
<br>>> stored in a subdirectory that rpy2 can read. Newer version of R its not
<br>>> working with rpy2. I will try your trick to change the code in the
<br>>> __init__.py but I dont think it would solve my problem. Actually manageR is
<br>>> loading in QGIS but its not working properly.
<br>>>
<br>>> Thank you
<br>>> Maxime
<br>>>
<br>>> ________________________________
<br>>> Date: Sun, 22 May 2011 06:11:10 -0700
<br>>> From: [hidden email]
<br>>> To: [hidden email]
<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 href="http://www.mail-archive.com/rpy-list@.../msg02779.html" 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 href="http://www.carsonfarmer.com/" rel="nofollow" target="_blank" link="external">http://www.carsonfarmer.com/</a><br>>> _______________________________________________
<br>>> Qgis-user mailing list
<br>>> [hidden email]
<br>>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" target="_blank" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>>>
<br>>>
<br>>> ________________________________
<br>>> If you reply to this email, your message will be added to the discussion
<br>>> below:
<br>>> <a href="http://osgeo-org.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6391395.html" rel="nofollow" target="_blank" link="external">http://osgeo-org.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6391395.html</a><br>>> To unsubscribe from manageR doesn't work well, click here.
<br>>> ________________________________
<br>>> View this message in context: RE: manageR doesn't work well
<br>>> Sent from the qgis-user mailing list archive at Nabble.com.
<br>>>
<br>>> _______________________________________________
<br>>> Qgis-user mailing list
<br>>> <a href="http:///user/SendEmail.jtp?type=node&node=6393737&i=2" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br>>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" target="_blank" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>>>
<br>>>
<br>>
<br>>
<br>>
<br>> --
<br>> Carson J. Q. Farmer
<br>> ISSP Doctoral Fellow
<br>> National Centre for Geocomputation
<br>> National University of Ireland, Maynooth,
<br>> <a href="http://www.carsonfarmer.com/" rel="nofollow" target="_blank" link="external">http://www.carsonfarmer.com/</a><br>> _______________________________________________
<br>> Qgis-user mailing list
<br>> <a href="http:///user/SendEmail.jtp?type=node&node=6393737&i=3" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" target="_blank" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>>
</div>_______________________________________________
</div>Qgis-user mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=6393737&i=4" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" 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 href="http://osgeo-org.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6393737.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6393737.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif">
To unsubscribe from manageR doesn't work well, <a href="" 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-tp5543144p6394931.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/>