Check whether 'terra' CRS transformations are available
Source:R/backend-terra.R
terra_is_working.RdThis helper attempts the same coordinate reprojection used elsewhere in
the package (via terra::project()). When the bundled PROJ /
GDAL data are missing, terra raises an error; here we catch
it and return FALSE so that examples, tests, and vignettes can
skip gracefully.
Details
Results are cached for the current R session to avoid repeatedly hitting
terra::project() during a single run.