Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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...
Expand Down
5 changes: 4 additions & 1 deletion R/ojo_gt.R
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 0 additions & 4 deletions ojothemes.Rproj
Original file line number Diff line number Diff line change
@@ -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
Expand Down