"proj_api. h not found in standard or Given Locations" when installing package in R

Asked

Viewed 95 times

-1

I’m trying to install the tmap in R and appears

Installing package into ː/home/Americo/R/x86_64-pc-linux-gnu-library/3.6' (as ːlib' is unspecified) also Installing the dependencies ?lwgeom', ?tmaptools', ?Stars'

the following error appears when it tries to install 'lwgeom'

configure: error: proj_api. h not found in standard or Given Locations. ERROR: Configuration failed for package ːlwgeom'

I’m running R-studio on Linux Mint. I’ve tried installing libproj-dev on the terminal and downloading deb. It always says it’s already installed.

I’ve also installed the rgdal. Everything worked out, but the mistake continues for the tmap

Can anyone tell me what the problem is? How can I fix?

2 answers

0


0

Hello. Try this command in R: remotes::install_github("r-Spatial/lwgeom"). It worked in version 3.6.3. Even you will have version 0.2-4. I hope it helps.

  • This solution I had found but it didn’t work on my pc! I don’t know if it’s a Linux or R thing, but it turns and moves has some cucumber to solve. Still, thanks for the answer! I hope it helps other people

Browser other questions tagged

You are not signed in. Login or sign up in order to post.