Thanks for the quick reply Victor.
I did not have R configured correctly. I used C:\Program
Files\R\R-3.0.2\bin for the path to the R folder and after I deleted
"\bin" the script worked fine.
For the plot problem it appears as if rgdal can't be found although when
I run R without going through QGIS it gets loaded just fine. I have my
packages installed in a personal library
"C:\Users\Ned\Documents\R\win-library\3.0" and maybe that's causing a
problem? Here is the error from the Rout file.
--
> tryCatch(find.package("rgdal"), error=function(e)
install.packages("rgdal", dependencies=TRUE))
Warning in install.packages("rgdal", dependencies = TRUE) :
'lib = "C:/Program Files/R/R-3.0.2/library"' is not writable
Error in install.packages("rgdal", dependencies = TRUE) :
unable to install packages
Calls: tryCatch ... tryCatchList -> tryCatchOne -> <Anonymous> ->
install.packages
Execution halted
Ned
On 02/13/2014 12:46 PM, Victor Olaya wrote:
Seems like the check that is performed before staring and R algorithm
is failing. Do you have R correctly configured (in windows you have to
specify the path to R in the config dialog)
Not sure about the issue with the plots. The file referenced in that
HTML snippet...does is exist? is is created by R? The output of the R
execution is saved to a .Rout file in the ~/.qgis2/processing folder.
You can check there to see what is happening.
2014-02-13 17:02 GMT+01:00 Ned Horning <[email protected]>:
I am able to execute R scripts using the Processing plugin on my Ubuntu
computer simply by double-clicking on the script name or selecting "Execute"
from the script's menu but in Windows 7 when I try that I get an error
"Missing dependency. This algorithm cannot be run". For some reason the same
script works fine if I run it from the Script editor.
Another issue I have with Windows 7 is that plots are not being displayed.
For example, when I run the "Raster histogram" script that is part of the
Processing examples on Windows 7 a plot is not displayed. Instead this
appears in the Results window: <img
src="C:/Users/Ned/AppData/Local/Temp/processing/a8531c28f8aa4196ae5a56037efa8f87/RPLOTS.html.png"/>.
This works just fine on my Ubuntu computer.
Any ideas what the problem might be?
Ned
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user