Last chance! 50% off unlimited learning
Sale ends in
Detect whether PROJ6 is available
fm_has_PROJ6()fm_not_for_PROJ6(fun = NULL)
fm_not_for_PROJ4(fun = NULL)
fm_fallback_PROJ6(fun = NULL)
fm_requires_PROJ6(fun = NULL)
The name of the function that requires PROJ6. Default: NULL, which uses the name of the calling function.
For fm_has_PROJ6
, logical;
TRUE
if PROJ6 is available, FALSE
otherwise
fm_not_for_PROJ6
is called to warn about using old PROJ4
features even though PROJ6 is available
fm_not_for_PROJ4
is called to give an error when
calling methods that are only available for PROJ6
fm_fallback_PROJ6
is called to warn about falling back
to using old PROJ4 methods when a PROJ6 method hasn't been implemented
fm_requires_PROJ6
is called to give an error when PROJ6
is required but not available
# NOT RUN {
fm_has_PROJ6()
# }
Run the code above in your browser using DataLab