R/snomadr-native.R

Defines functions .crs_nomad_native_eval_r

.crs_nomad_native_eval_r <- function(eval.f, x) {
  tryCatch(
    list(0L, eval.f(x), ""),
    interrupt = function(e) {
      list(1L, NULL, conditionMessage(e))
    },
    error = function(e) {
      list(2L, NULL, conditionMessage(e))
    }
  )
}

Try the crs package in your browser

Any scripts or data that you put into this service are public.

crs documentation built on June 2, 2026, 1:07 a.m.