MikkoVihtakari / ggOceanMaps

Plot oceanographic research data on maps using ggplot2
GNU General Public License v3.0
46 stars 7 forks source link

installation dependencies issue #12

Closed shu251 closed 2 years ago

shu251 commented 2 years ago

Hello, I've run into an issue when installing dependencies for "ggOceanMaps". Following this message:

also installing the dependencies ‘rgdal’, ‘rosm’, ‘terra’, ‘lwgeom’, ‘ggspatial’, ‘raster’, ‘sf’, ‘rgeos’, ‘stars’, ‘smoothr’, ‘units'

I get error messages of configuration failed for each package, leaving with 'had nonzero exit' status.

Any suggestions for installation? I've tried various versions of installing from CRAN and GitHub with dependencies = TRUE. Upon trying to install listed packages separately, ran into many issues with the ggspatial package, which I also tried install in a variety of ways. Any advice would be helpful!

MikkoVihtakari commented 2 years ago

Yes, this can be a bit difficult. I have lately struggled with terra even though ggOceanMaps does not make a dependency to that package.

Try installing the packages that throw errors manually (install.packages("rgdal")). Some will go without problems, while rgdal, terra, ggspatial, sf or stars may not work. If that is the case, check the version of gdal and proj you have installed. Those have to be >= 3 and >= 6, respectively.

Google will help you finding out how to do all that I write above.

Let me know if this solved the issue.

MikkoVihtakari commented 2 years ago

No answer. I'll close, open if needed