Hi all
I am having a problem deploying a shiny app that was working up to yesterday. I am also getting the same error to deploy a similar shiny app using the same R packages. The apps run perfectly, the problem is just during deployment. The error is this:
[2020-04-16T13:28:58.140382839+0000] Building R package: lwgeom (0.2-3)
/mnt/packages/build /mnt
- installing to library ‘/opt/R/3.6.3/lib/R/library’
- 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 ‘/opt/R/3.6.3/lib/R/library/lwgeom’
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 717002723 failed: Error building image: Error building lwgeom (0.2-3). Build exited with non-zero status: 1
Execution halted
I am working on a Mac-Catalina 10.15.4
I honestly do not know what is going on. I searched everywhere, reinstall R, RStudio and all packages and still get the error. I suspect it may be related to rgdal or sf packages that were giving me a headache. I fixed those but now the deployment is failing.
This is where proj is located. Maybe the problem is there?
PROJ_LIB /Library/Frameworks/R.framework/Versions/3.6/Resources/library/sf/
I will appreciate any help.
Let me know if I did not provide much info. It is the first time trying to reach out to the community with help as I could not find any help in previous posts.
Thank you!