Skip to content

Additional 2 package dependencies after ggplot2 update #204

@Schiano-NOAA

Description

@Schiano-NOAA

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.

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"
)
}

pal <- function(n) viridisLite::mako(n, begin = 0.1, end = 0.85)

Metadata

Metadata

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions