R/list_params.R

Defines functions list_params

Documented in list_params

#' @rdname lists
#' @export
list_params <- function(api,
                        endpoint) {
  if (is.null(.cfg$apis[[api]])) {
    stop("The API '", api, "' is not available on Hub'Eau, or is not implemented in the package")
  }
  if (is.null(.cfg$apis[[api]]$endpoints[[endpoint]])) {
    stop("The endpoint '", endpoint, "' is not available for this API, or is not implemented in the package")
  }
  .cfg$apis[[api]]$endpoints[[endpoint]]$fields
}

Try the hubeau package in your browser

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

hubeau documentation built on June 8, 2025, 11:21 a.m.