Unable to install R geospatial libraries raster, terra, sf, ncdf4, etc

ArturoNuor
New Contributor III

When trying to install any of this R libraries from a cmd cell/block on a notebook, or from the UI in the cluster I receive the same error,seeming that are unable to install dependecies.

Warning in utils::install.packages(pkgs, ...) :

installation of package ‘*****’ had non-zero exit status

Can anyone help me with this?