R/edible_utils.R

Defines functions check_sf

check_sf <- function(x){
  #check if x is a sf object
  if (all(class(x) != "sf")) rlang::abort(tr_("x must be an `sf` object"))
}
icra/edibleCity documentation built on Dec. 6, 2023, 4:56 a.m.