[Qgis-user] Error Trying to Run R Summary Statistics in QGIS 2.12.1

Terry Morse tmorse at teleport.com
Wed Dec 30 13:53:56 PST 2015


The answer turns out to be that, while QGIS can extract and process layers from a zipfile, the R scripts can't. Once I extracted the layers and added them to QGIS, the R scripts worked.

Terry

-----Original Message-----
>From: Terry Morse <tmorse at teleport.com>
>Sent: Dec 27, 2015 10:21 PM
>To: QGIS-L <qgis-user at lists.osgeo.org>
>Subject: [Qgis-user] Error Trying to Run R Summary Statistics in QGIS 2.12.1
>
>When I try to run the R script "Summary statistics" in QGIS 2.12.1 on a Windows 7/64 bit machine, I get the error message "error in if (!file.info(DSN)$isdir) DSN missing value where TRUE/FALSE needed," and the output file is empty. (The results viewer opens, but all it contains is the heading, "R Output".)
>
>Having read a comment on-line that R doesn't work properly if installed in the c:\Program Files\ directory, I tried installing it in its own directory in c:, but that didn't make any difference. I've tried installing R with and without the 32 bit files, and with just the 32 bit files (no 64 bit files), but the result is always the same: no results. The same happens with the R Histogram script.
>
>QGIS's native Basic Statistics routine does produce results, so I don't think there is any problem with the line vector shapefile. As for the R options, I have checked "Activate" and "Use 64-bit version" (I've tried it with this unchecked as well.
>
>The R-scripts folder is "C:\Users\Terry\.qgis2\processing\rscripts";
>the R folder is "C:\Program Files\R\R-3.2.3";
>and the R user library folder is "C:\Users\Terry\.qgis2\processing\rlibs."
>
>Can anyone help me get R scripts working in QGIS?
>
>Thank you,
>Terry
>
>_______________________________________________
>Qgis-user mailing list
>Qgis-user at lists.osgeo.org
>List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list