Skip to content

Error in .gd_SetProject(transient, crs(r))

12 messages · Guillaume Drolet, Etienne B. Racine, Agustin Lobo +2 more

#
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:
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.
#
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
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:
4 days later
#
Well, I rather don't, rgdal is critical for me.
Perhaps it is more a problem of gdal itself than of rgdal or raster.
I'm using
Loaded GDAL runtime: GDAL 1.10.0, released 2013/04/24

Which gdal version are you using?
Agus
On Thu, Dec 12, 2013 at 2:35 PM, Ahmadou Dicko <dicko.ahmadou at gmail.com> wrote:
#
I think this has been fixed in the development version, which I will
release this week.
You can download and try this version from here:
http://r-forge.r-project.org/R/?group_id=294
Or: install.packages("raster", repos="http://R-Forge.R-project.org")
Robert
On Tue, Dec 17, 2013 at 12:15 AM, Ahmadou Dicko <dicko.ahmadou at gmail.com> wrote:
2 days later
#
Ahmadou, Guillaume,

As you had updated to the previous version and detected the problem,
would you be so kind of testing Robert's new version and report back
to the list?
I personally cannot take the risk of having these tools becoming
unstable at this moment.
Thanks
Agus
On Wed, Dec 18, 2013 at 3:26 AM, Robert J. Hijmans <r.hijmans at gmail.com> wrote: