diff --git a/DESCRIPTION b/DESCRIPTION index 9f326ba..c15c49b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -19,27 +19,28 @@ Roxygen: list(markdown = TRUE) Depends: R (>= 4.1.0) Imports: - htmlwidgets, - geojsonsf, - sf, - rlang, - htmltools, - grDevices, base64enc, - terra, classInt, - shiny, - viridisLite, - png, + cli, + geojsonsf, + grDevices, + htmltools, + htmlwidgets, + httpuv, jsonlite, - httpuv + png, + rlang, + sf, + shiny, + terra, + viridisLite Suggests: chromote, knitr, + leaflet, mapboxapi, testthat (>= 3.0.0), usethis, - leaflet, withr Config/testthat/edition: 3 Config/roxygen2/version: 8.0.0 diff --git a/R/style_helpers.R b/R/style_helpers.R index 7822b8d..767915a 100644 --- a/R/style_helpers.R +++ b/R/style_helpers.R @@ -489,8 +489,8 @@ mapbox_style <- function(style_name) { maptiler_style <- function(style_name, variant = NULL, api_key = NULL) { if (is.null(api_key)) { if (Sys.getenv("MAPTILER_API_KEY") == "") { - rlang::abort( - "A MapTiler API key is required. Get one at https://www.maptiler.com, then supply it here or set it in your .Renviron file with 'MAPTILER_API_KEY'='YOUR_KEY_HERE'." + cli::cli_abort( + "A MapTiler API key is required. Get one at {.url https://www.maptiler.com}, then supply it here or set it in your .Renviron file with 'MAPTILER_API_KEY'='YOUR_KEY_HERE'." ) } else { api_key <- Sys.getenv("MAPTILER_API_KEY")