Closed 13954380607 closed 2 months ago
Hi, could you tell us what system you're installing on?
On hpc
Can you make sure if you have these requirements already satisfied on the HPC?
GDAL (>= 2.2.3), GEOS (>= 3.4.0), PROJ (>= 4.9.3), sqlite3.
More info at terra's github
Yes, I think I have all of this and when I directly downloaded package terra, it gave me: ERROR 1: PROJ: proj_create_from_database: Open of /home/dl2373/.conda/envs/r_env/share/proj failed ERROR 1: PROJ: proj_create_from_database: Open of /home/dl2373/.conda/envs/r_env/share/proj failed ERROR 1: PROJ: proj_create: unrecognized format / unknown name ERROR 1: PROJ: proj_create: unrecognized format / unknown name no configure: error: OGRCoordinateTransformation() does not return a coord.trans: PROJ not available? ERROR: configuration failed for package ‘terra’
If you are using a shared cluster, you probably need to load these dependencies separately. Trying to build terra using any of the dependencies from a specific conda environment will make it hard to manage in the future. If you have sudo access to the HPC, you can probably build terra using the dependencies with
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install libgdal-dev libgeos-dev libproj-dev
For more information please refer to: https://github.com/rspatial/terra
Guessing this is resolved now.
pak::pkg_install("drieslab/Giotto")
→ Will install 73 packages. → All 73 packages (88.32 MB) are cached.
✔ Installed httr 1.4.7 (1.2s)
✖ Failed to build terra 1.7-78 (1m 25.1s)
Error:
! error in pak subprocess Caused by error in
stop_task_build(state, worker)
: ! Failed to build source package terra. Type .Last.error to see the more details.