<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I have tested manageR on Ubuntu Gnome with QGIS 1.6 and R 2.11.1 and now the same shapefile that I was testing can be loaded. Now, I can perform some analysis on it. Is it because I was on Windows 7 that manageR was not working?<br><br>I still have an issue with manageR on Ubuntu. I cant load the shapefile with the option Import layer from canvas, and receive this error message:<br><br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;">Error in `[.data.frame`(data, match.ID[1]) : undefined columns selected</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">When I load the data with the option Import layer attribute it seems to work. Someone have an idea why the first option is not working? Anybody has successfully used manageR in a Windows 7 environment?</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Thank you for your help,</p><p style="margin: 0px; text-indent: 0px;">Maxime<br></p><br>> Date: Mon, 23 May 2011 17:22:31 +0100<br>> Subject: Re: [Qgis-user] RE: manageR doesn't work well<br>> From: carson.farmer@gmail.com<br>> To: burton.1@sympatico.ca<br>> CC: qgis-user@lists.osgeo.org<br>> <br>> > I added R folder in the PATH environment variable but its not helping me<br>> > with my problem. Actually, manageR can be loader correctly in QGIS but when<br>> > I try to import a shapefile with the tool Import Layer from Canvas, I cannot<br>> > perform analysis on this data. It seems manageR cannot load the data which<br>> > is a simple polygon shapefile with an attribute table of strings and<br>> > numbers. When I type ls() or objects() in manageR I got the awnser<br>> > 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>> Lots of people have, so it is possible ;-) Did you check that both the<br>> sp and rgdal packages were installed as I mentioned before?<br>> What happens if you type something like the following into the manageR console:<br>> <br>> > library(rgdal)<br>> > layer <- readOGR("C:\path\to\your\layer.shp", layer="shape")<br>> <br>> also, see ?readOGR to make sure your arguments are correct.<br>> <br>> Alternatively, you can use the "Analysis > Spatial operations > Load<br>> OGR data" menu if you like.<br>> <br>> Carson<br>> <br>> > ________________________________<br>> > Date: Mon, 23 May 2011 02:42:11 -0700<br>> > From: [hidden email]<br>> > To: [hidden email]<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 <[hidden email]>:<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 <[hidden email]> wrote:<br>> >>> Hi Carson,<br>> >>><br>> >>> Sorry, my mistake, I use R 2.11.0 because in this version the executable<br>> >>> 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<br>> >>> 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>> >>> http://www.mail-archive.com/rpy-list@.../msg02779.html<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>> >>> http://www.carsonfarmer.com/<br>> >>> _______________________________________________<br>> >>> Qgis-user mailing list<br>> >>> [hidden email]<br>> >>> http://lists.osgeo.org/mailman/listinfo/qgis-user<br>> >>><br>> >>><br>> >>> ________________________________<br>> >>> If you reply to this email, your message will be added to the discussion<br>> >>> below:<br>> >>><br>> >>> http://osgeo-org.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6391395.html<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>> >>> [hidden email]<br>> >>> http://lists.osgeo.org/mailman/listinfo/qgis-user<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>> >> http://www.carsonfarmer.com/<br>> >> _______________________________________________<br>> >> Qgis-user mailing list<br>> >> [hidden email]<br>> >> http://lists.osgeo.org/mailman/listinfo/qgis-user<br>> >><br>> > _______________________________________________<br>> > Qgis-user mailing list<br>> > [hidden email]<br>> > http://lists.osgeo.org/mailman/listinfo/qgis-user<br>> ><br>> ><br>> > ________________________________<br>> > If you reply to this email, your message will be added to the discussion<br>> > below:<br>> > http://osgeo-org.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6393737.html<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>> > Qgis-user@lists.osgeo.org<br>> > http://lists.osgeo.org/mailman/listinfo/qgis-user<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>> http://www.carsonfarmer.com/<br>                                     </body>
</html>