Error in .gd_SetProject(transient, crs(r))
I have no problem on linux with QGIS 2.01, RStudio Version 0.98.484 and rgdal: version: 0.8-11, (SVN revision 479M) Geospatial Data Abstraction Library extensions to R successfully loaded Loaded GDAL runtime: GDAL 1.10.0, released 2013/04/24
sessionInfo()
R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=es_ES.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=es_ES.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=es_ES.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] raster_2.1-49 rgdal_0.8-11 sp_1.0-13 lmodel2_1.7-1 xtable_1.7-1 knitr_1.5 loaded via a namespace (and not attached): [1] codetools_0.2-8 digest_0.6.3 evaluate_0.5.1 formatR_0.9 grid_3.0.2 lattice_0.20-24 markdown_0.6.3 [8] stringr_0.6.2 tools_3.0.2 On Tue, Dec 10, 2013 at 6:57 PM, Guillaume Drolet
<droletguillaume at gmail.com> wrote:
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.
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo