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

Terry Morse tmorse at teleport.com
Sun Dec 27 22:21:40 PST 2015


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




More information about the Qgis-user mailing list