Learn R Programming

snic (version 0.6.1)

terra_is_working: Check whether 'terra' CRS transformations are available

Description

This 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.

Usage

terra_is_working()

Arguments

Value

A logical flag indicating whether terra can perform CRS transformations.

Details

Results are cached for the current R session to avoid repeatedly hitting terra::project() during a single run.