-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
help wantedExtra attention is neededExtra attention is needed
Description
I just noticed that the messages that we added to word with the new ggplot2 update resulted in additional 2 dependencies in the package. In an effort to reduce the dependencies of the package, is there a way to replace these functions in the theme_noaa function using our current dependencies or base R?
They are only used in this function once and unless absolutely necessary, I think we should find an alternative.
Lines 26 to 32 in 9485186
| if (utils::packageVersion("ggplot2") < "4.0.0") { | |
| rlang::warn( | |
| message = paste0("Your `ggplot2` version is ", utils::packageVersion("ggplot2"), ", which is older than the version required to use `theme_noaa()` (4.0.0). Please update your `ggplot2` package."), | |
| .frequency = "once", | |
| .frequency_id = "ggplot2_version_warning" | |
| ) | |
| } |
Line 46 in 9485186
| pal <- function(n) viridisLite::mako(n, begin = 0.1, end = 0.85) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed