Detect whether PROJ6 is available for INLA

inla.has_PROJ6()

inla.not_for_PROJ6(fun)

inla.not_for_PROJ4(fun)

inla.fallback_PROJ6(fun)

inla.requires_PROJ6(fun)

Value

For inla.has_PROJ6, logical; `TRUE` if PROJ6 is available, `FALSE` otherwise

Details

inla.not_for_PROJ6 is called to warn about using old PROJ4 features even though PROJ6 is available

inla.not_for_PROJ4 is called to give an error when calling methods that are only available for PROJ6

inla.fallback_PROJ6 is called to warn about falling back to using old PROJ4 methods when a RPOJ6 method hasn't been implemented

inla.requires_PROJ6 is called to give an error when PROJ6 is required but not available

Examples

inla.has_PROJ6()
#> Error in inla.has_PROJ6(): inla.require("rgdal") is not TRUE