[Qgis-developer] R in Processing: errors not shown

matteo matteo.ghetta at gmail.com
Mon Mar 13 07:09:29 PDT 2017


Hi,

> Hi all,
> when installing R scripts from online repo for Processing, no error is
> visible to users when necessary R modules are missing, but models are
> not shown. Errors are in the log:
> ===
> 2017-03-12T23:39:03	0	Comandi di esecuzione R
> 			options("repos"="http://cran.at.r-project.org/")
> 			tryCatch(find.package("rgdal"), error=function(e)
> install.packages("rgdal", dependencies=TRUE))
> 			tryCatch(find.package("raster"), error=function(e)
> install.packages("raster", dependencies=TRUE))
> 			library("raster")
> ===
> IMHO this is difficult to grasp for the user, and an explicit error
> should be given, together with the suggestion to install the missing libs.
> Am I missing something?
> Thanks.

that sounds weird. Unless I'm wrong (and except the packages rgdal and
raster) I thought that Processing would automatically download and
install the additional packages if missing.

Are you sure that the error is related to the missing packages?

Matteo


More information about the Qgis-developer mailing list