Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoffa committed Dec 12, 2024
1 parent 92d30b8 commit ad40799
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions R/format_badges.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ format_lifecycle_badge <- function(lifecycle) {
lifecycle %in% c("experimental", "stable", "deprecated", "superseded")
)

lifecycle_badge_url <- switch(lifecycle,
experimental = "https://lifecycle.r-lib.org/reference/figures/lifecycle-experimental.svg", # nolint: line_length_linter
stable = "https://lifecycle.r-lib.org/reference/figures/lifecycle-stable.svg", # nolint: line_length_linter
deprecated = "https://lifecycle.r-lib.org/reference/figures/lifecycle-deprecated.svg", # nolint: line_length_linter
superseded = "https://lifecycle.r-lib.org/reference/figures/lifecycle-superseded.svg" # nolint: line_length_linter
lifecycle_badge_url <- switch(
lifecycle,
experimental = "https://lifecycle.r-lib.org/reference/figures/lifecycle-experimental.svg", # nolint: line_length_linter
stable = "https://lifecycle.r-lib.org/reference/figures/lifecycle-stable.svg", # nolint: line_length_linter
deprecated = "https://lifecycle.r-lib.org/reference/figures/lifecycle-deprecated.svg", # nolint: line_length_linter
superseded = "https://lifecycle.r-lib.org/reference/figures/lifecycle-superseded.svg" # nolint: line_length_linter
)

format_badge_url(
Expand Down

0 comments on commit ad40799

Please sign in to comment.