R/internal.R

Defines functions any_to_int nocache_conversion gh_user api_path api_url

api_url <- function() {
  "https://features.hillcrestgeo.ca/"
}

api_path <- function() {
  "fwa"
}

gh_user <- function() {
  "http://github.com/poissonconsulting/fwapgr"
}

nocache_conversion <- function(nocache) {
  if(isTRUE(nocache)) {
    return('true')
  }
  'false'
}

any_to_int <- function(data) {
  data |>
dplyr::mutate(dplyr::across(tidyselect::any_of(c("blue_line_key", "blue_line_key_50k", "gnis_id", "linear_feature_id", "watershed_group_id", "watershed_key", "watershed_key_50k", "hex_id")), as.integer))
}
poissonconsulting/fwapgr documentation built on March 30, 2024, 1:51 a.m.