I am a new user on RStudio Cloud and I can't install the "lwgeom" package when I try to install it from the console this happens:
> install.packages("lwgeom")
Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'http://package-proxy/src/contrib/lwgeom_0.2-3.tar.gz'
Content type 'application/x-gzip' length 502493 bytes (490 KB)
==================================================
downloaded 490 KB
* installing *source* package ‘lwgeom’ ...
** package ‘lwgeom’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc
configure: CXX: g++ -std=gnu++11
configure: pkg-config proj exists, will use it
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
configure: error: proj_api.h not found in standard or given locations.
ERROR: configuration failed for package ‘lwgeom’
* removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/lwgeom’
Warning in install.packages :
installation of package ‘lwgeom’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpHlQrfs/downloaded_packages’
> library(lwgeom)
Error in library(lwgeom) : there is no package called ‘lwgeom’