[R-sig-Geo] a problem with readOGR

Pascal Oettli kridox at ymail.com
Fri Jan 18 05:38:12 CET 2013


Hello,

To me, the following works:

setwd("D:/mydirectory/")
carte = readOGR(getwd(),layer="COMMUNE")

HTH,
Pascal

Le 18/01/2013 08:35, Julien Salanié a écrit :
> Hello,
>
> I was working on a script (which was working perfectly). For some reason
> I updated my packages and readOGR() is not working anymore. I was able
> to read those data before. I decided to reinstall everything, and it is
> still not working. Does anyone has the same problem. Here is the code,
> the warning and session info :
>
> CODE:
> setwd("D:/mydirectory");
> carte = readOGR("COMMUNE.shp",layer="COMMUNE");
>
> COMMUNE.shp .dbf. and all other required files are in D:/mydirectory. I
> was able to build the map before the problem arised.
>
> WARNING:
> [8] ERREUR:
> impossible d'ouvrir la connexion
>
> That is : "Impossible to open connection".
>
> SESSION INFO:
>   > sessionInfo();
> R version 2.15.2 (2012-10-26)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
> LC_MONETARY=French_France.1252 LC_NUMERIC=C
> LC_TIME=French_France.1252
>
> attached base packages:
> [1] splines   grid      stats     graphics  grDevices utils datasets
> methods   base
>
> other attached packages:
>    [1] mgcv_1.7-22     sfsmisc_1.0-23  spdep_0.5-56 coda_0.16-1
> deldir_0.0-21   maptools_0.8-22 foreign_0.8-52 nlme_3.1-107
> Matrix_1.0-9    boot_1.3-7
> [11] rgdal_0.8-3     lattice_0.20-13 geoR_1.7-4 sp_1.0-5
> Rcmdr_1.9-3     car_2.0-15      nnet_7.3-5 MASS_7.3-22
>
> loaded via a namespace (and not attached):
> [1] LearnBayes_2.12     RandomFields_2.0.59 splancs_2.01-32 tcltk_2.15.2
>
>
> Thank you very much for your help. Best regards. Julien
>
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list