[R-sig-Geo] Error in .gd_SetProject(transient, crs(r))

Guillaume Drolet droletguillaume at gmail.com
Tue Dec 10 18:57:53 CET 2013


Hello,

This morning I updated RStudio to version 0.98.484, and Quantum GIS to
version 2.0.1 (Dufour) using the standalone installer.

After that, I tried to run some code in RStudio and I got the error message
below when running the following command:

> filename <- "test.tif"
> try(writeRaster(raster(matrix(1, 1, 1)), filename = filename, overwrite =
> overwrite))

Error in .gd_SetProject(transient, crs(r)) : 
  STRING_ELT() can only be applied to a 'character vector', not a 'logical'

Then, I updated rgdal to version 0.8-14 and now I get this error when
running the same code:

Error in .gd_SetProject(object, ...) : 
  STRING_ELT() can only be applied to a 'character vector', not a 'logical'

Until this morning, I never had any problem with that line of code above. I
suspect this could be due to the QGIS installation that could have messed
with my GDAL installation: is that possible (is GDAL used by rgdal at all)?
I tried uninstalling QGIS but I still get the same error message.

My session info:

R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=French_Canada.1252  LC_CTYPE=French_Canada.1252   
LC_MONETARY=French_Canada.1252
[4] LC_NUMERIC=C                   LC_TIME=French_Canada.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] fmask_0.1         RSAGA_0.93-6      plyr_1.8          shapefiles_0.7   
foreign_0.8-55   
 [6] gstat_1.0-18      data.table_1.8.10 rgdal_0.8-14      roxygen2_3.0.0   
raster_2.1-68    
[11] sp_1.0-14        

loaded via a namespace (and not attached):
 [1] brew_1.0-6       codetools_0.2-8  digest_0.6.3     grid_3.0.2      
intervals_0.14.0 lattice_0.20-23 
 [7] spacetime_1.0-9  stringr_0.6.2    tools_3.0.2      xts_0.9-7       
zoo_1.7-10   

I will be very grateful of any help or piece of advice on how to fix that or
where to look for clues.

Best wishes,
Guillaume



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Error-in-gd-SetProject-transient-crs-r-tp7585330.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list