diff --git a/DESCRIPTION b/DESCRIPTION index d8c508f..2180495 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ojothemes Title: OJO, OKPI, and TOK themes for ggplot2 and gt -Version: 1.1.1 +Version: 1.1.2 Authors@R: c( person( diff --git a/NEWS.md b/NEWS.md index 720679a..8674e0a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,8 @@ +# ojothemes 1.1.2 (2025-07-28) + +* No really, it really does that now, trust me bro +* Uses `gt::cols_label_with` to change column name appearance to title case without changing underlying column names + # ojothemes 1.1.1 (2025-04-20) * Actually does that... diff --git a/R/ojo_gt.R b/R/ojo_gt.R index 333c2b5..080c092 100644 --- a/R/ojo_gt.R +++ b/R/ojo_gt.R @@ -22,8 +22,11 @@ gt_base <- function(data, analyst_name = NA, source = NA ){ x <- data |> - dplyr::rename_with(snakecase::to_title_case) |> gt::gt() |> + gt::cols_label_with( + columns = dplyr::everything(), + fn = snakecase::to_title_case + ) |> gt::tab_options( heading.align = "left", column_labels.border.top.style = "none", diff --git a/ojothemes.Rproj b/ojothemes.Rproj index de3636a..3768b89 100644 --- a/ojothemes.Rproj +++ b/ojothemes.Rproj @@ -1,9 +1,5 @@ Version: 1.0 -<<<<<<< HEAD ProjectId: dbb40723-0e10-4333-8c74-31eb8b4cdc6f -======= -ProjectId: dcac9368-96f0-4eb3-950b-b0aeafb74acb ->>>>>>> 6e9db91f3a823a732b948a96cedf7f4f19b93f61 RestoreWorkspace: No SaveWorkspace: No