Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
11 changes: 9 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ojothemes
Title: OJO, OKPI, and TOK themes for ggplot2 and gt
Version: 1.0.0
Authors@R:
Version: 1.1.0
Authors@R:
c(
person(
given = "Andrew",
Expand All @@ -14,6 +14,12 @@ Authors@R:
family = "Flores",
email = "aflores@okpolicy.com",
role = "aut"
),
person(
given = "Brancen",
family = "Gregory",
email = "brancengregory@gmail.com",
role = "aut"
))
Description: This package contains themes for ggplot2 plots and gt tables that follow the styles of OJO / OKPI / TOK.
License: GPL (>= 3) + file LICENSE
Expand All @@ -29,6 +35,7 @@ Imports:
lifecycle,
rlang,
showtext,
snakecase,
stringr,
sysfonts,
tidyselect
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ojothemes 1.1.0 (2025-04-20)

* Brings clean "Title Case" to gt_* functions using `{snakecase}`
2 changes: 1 addition & 1 deletion R/ojo_gt.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ gt_base <- function(data,
column_labels.font.size = gt::px(font_size)
) |>
gt::tab_spanner(
label = stringr::str_to_title(colnames(data))
label = snakecase::to_title_case(colnames(data))
) |>
gt::tab_options(
column_labels.font.size = "medium",
Expand Down
1 change: 1 addition & 0 deletions ojothemes.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: dcac9368-96f0-4eb3-950b-b0aeafb74acb

RestoreWorkspace: No
SaveWorkspace: No
Expand Down
2 changes: 1 addition & 1 deletion renv.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"R": {
"Version": "4.4.2",
"Version": "4.5.0",
"Repositories": [
{
"Name": "CRAN",
Expand Down