Skip to content

Commit

Permalink
164 fix : correction du pb get_dsfr_version- introuvable de façon non…
Browse files Browse the repository at this point in the history
… satisfaisant (ajout local de la fonction dans le script accordion_dsfr_template.R) - A revoir.
  • Loading branch information
edouard-morin committed Jan 24, 2025
1 parent 4065744 commit 1c9ff6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/accordion_dsfr_template.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ accordion_panel_one <- function(
expand = expand
)
}
#' @noRd
get_dsfr_version <- function(with_v = FALSE) {
res <- utils::packageDescription(pkg = 'shinygouv')[["VersionDsfr"]]
if (isTRUE(with_v)) {
res <- paste0("v", res)
}
return(res)
}
accordion_dsfr_template(
divs = accordion_panel_one(
id = "accord-1",
Expand Down

0 comments on commit 1c9ff6a

Please sign in to comment.