[R-sig-Geo] Error in CRS("+init=epsg:4326")

Roger Bivand Roger.Bivand at nhh.no
Mon Jun 29 15:54:43 CEST 2015


On Mon, 29 Jun 2015, Daniel Marcelino wrote:

> I'm having the following issue. It's been quite a while I do not play with this program, but it seems that something is not where it should be. Is there any thing I can do to fix it? 
>
> # packages: 
> library(ggmap)
> library(sp)
> library(rgdal)
> library(rgeos)
>  
>  # get the city coordinates
> go <- geocode("Chicago")
> # create spatialPoint object
> coordinates(go) <- ~ lon + lat
> proj4string(go) <- CRS("+init=epsg:4326")
> Error in CRS("+init=epsg:4326") : no system list, errno: 2
>  
> EPSG <- make_EPSG()
> Error in make_EPSG() : Error opening epsg file

Reinstall rgdal, for a short period the OSX Mavericks+ binary lacked the 
/proj and /gdal metadata folders. If that isn't possible, copy those 
folders from a Snow Leopard rgdal OSX binary.

Roger

>
>
>> sessionInfo()
> R version 3.2.0 (2015-04-16)
> Platform: x86_64-apple-darwin13.4.0 (64-bit)
> Running under: OS X 10.10.3 (Yosemite)
>
> locale:
> [1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base     
>
> other attached packages:
> [1] rgeos_0.3-8   rgdal_0.9-2   sp_1.1-0      ggmap_2.4     ggplot2_1.0.1
>
> loaded via a namespace (and not attached):
>  [1] Rcpp_0.11.5         magrittr_1.5        maps_2.3-9         
>  [4] MASS_7.3-40         munsell_0.4.2       colorspace_1.2-6   
>  [7] geosphere_1.3-13    lattice_0.20-31     rjson_0.2.15       
> [10] jpeg_0.1-8          stringr_1.0.0       plyr_1.8.2         
> [13] tools_3.2.0         grid_3.2.0          gtable_0.1.2       
> [16] png_0.1-7           digest_0.6.8        RJSONIO_1.3-0      
> [19] reshape2_1.4.1      mapproj_1.2-2       stringi_0.4-1      
> [22] RgoogleMaps_1.2.0.7 scales_0.2.4        proto_0.3-10    
>
>
>
>
> \begin{signature}
> Daniel Marcelino
> ☁ dm.silva at umontreal.ca 
> ☎ (514) 343 6111 #3799
> Skype: d.marcelino 
> ✎ 3200 Jean Brillant,  Office C5071
> Montreal, QC; H3T 1N8
> Canada
> \end{signature}
>
> "Small steps toward a much better world" 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no


More information about the R-sig-Geo mailing list