Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions R/style_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down