[R-sig-Geo] rgdal PROJ.4 and a Mac

Adel Heenan adel.heenan at gmail.com
Wed Jun 14 23:26:32 CEST 2017


Hi all,

I am new to using R for spatial analysis and have encountered what seems to
be a common, known issue. When I use the functions readOGR or ssplot
or proj4string() I get the following error message:

NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files

Here is my sessionInfo()

R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.3 (Yosemite)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] rgdal_1.2-5        GISTools_0.7-4     rgeos_0.3-23       MASS_7.3-45
     RColorBrewer_1.1-2
[6] maptools_0.9-2     sp_1.2-4

I tried the fix suggested here:

*https://stat.ethz.ch/pipermail/r-sig-geo/2017-January/025350.html
<https://stat.ethz.ch/pipermail/r-sig-geo/2017-January/025350.html>*

Specifically, I downloaded the windows binaries (the r-devel one - not sure
if it matters) from here:

https://cran.r-project.org/web/packages/rgdal/index.html

And placed the proj and gdal folders in the rdgal folder -

list.files(system.file("", package="rgdal"))
 [1] "ChangeLog"      "data"           "DESCRIPTION"    "doc"
 "etc"            "gdal"
 [7] "help"           "html"           "INDEX"          "libs"
"LICENSE.TXT"    "Meta"
[13] "NAMESPACE"      "OSGeo4W_test"   "pictures"       "proj"
"R"              "README"
[19] "README.windows" "SVN_VERSION"    "vectors"

But the same error comes up.

Is there a different way in which I can try and fix this? I am unfamiliar
with how to compile things from source.

Many thanks,

Adel
[1] tools_3.2.4     foreign_0.8-66  grid_3.2.4      lattice_0.20-33

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list