[Qgis-user] Unable to run R in QGIS 2.6 - rgdal binary unavailable for R 3.1

drruddy gmail drmarkruddy at gmail.com
Thu Jan 8 06:01:36 PST 2015


Apologies for cross-posting. Having trouble getting a resolution on gis.stackexchange here.

I’m attempting to use R within QGIS2.6 on OSX Mavericks but cannot get R to run because rgdal is not available as binary for R3.1.2 (see QGIS log output from R execution console below).

I have installed rgdal on my system R installation using alternatives to install.package(rgdal, source) such as KyngChaos but QGIS doesn’t seem to be seeing rgdal. Does QGIS use an different R/rgdal location to my main system versions?

See example QGIS log output after trying R summary tool.

R execution console output

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin13.4.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

options("repos"="http://cran.at.r-project.org/") tryCatch(find.package("rgdal"), error=function(e) install.packages("rgdal", dependencies=TRUE))

package 'rgdal' is available as a source package but not as a binary

Warning message: package 'rgdal' is not available (for R version 3.1.2) tryCatch(find.package("raster"), error=function(e) install.packages("raster", dependencies=TRUE)) [1] "/Library/Frameworks/R.framework/Versions/3.1/Resources/library/raster" library("raster") Loading required package: sp library("rgdal") Error in library("rgdal") : there is no package called 'rgdal' Execution halted
many thanks

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150108/f11944fd/attachment.html>


More information about the Qgis-user mailing list