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

Patrick Schratz patrick.schratz at gmail.com
Wed Jun 14 23:43:17 CEST 2017


As a start I would suggest to
1) update R
2) update all packages
3 install latest proj4 version (currently 4.9.3)
5) use sf::st_read instead of rgdal::readOGR
4) update OSX


On 14. Jun 2017, 23:26 +0200, Adel Heenan <adel.heenan at gmail.com>, wrote:
> 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]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list