R/zzz.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  if (interactive()) {
    cli::cli_h1("Welcome to geoidep")

    cli::cli_alert_info(
      "geoidep is a wrapper that allows you to download cartographic data for Peru from R.
       Currently, `geoidep` supports the following providers:"
    )

    providers <- get_providers()[["provider"]][1:4] |> as.vector()

    for (provider in providers) {
      cli::cli_alert_success(provider)
    }

    cli::cli_alert_info("For more information, please use the `get_data_sources()` function.")
  }
}

Try the geoidep package in your browser

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

geoidep documentation built on Sept. 23, 2024, 1:06 a.m.