Skip to content

Commit

Permalink
abbreviation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Dec 10, 2024
1 parent ed2b328 commit 92ca979
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
9 changes: 6 additions & 3 deletions R/as_kable_extra.R
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ table_styling_to_kable_extra_calls <- function(x, escape, format, addtl_fmt, ...
seq_len(nrow(x$table_styling$source_note)),
\(i) {
expr(
kableExtra::footnote(number = !!x$table_styling$source_note$source_note[i], escape = !!escape)
kableExtra::footnote(
general = !!x$table_styling$source_note$source_note[i],
escape = !!escape,
general_title = ""
)
)
}
)
Expand All @@ -371,8 +375,7 @@ table_styling_to_kable_extra_calls <- function(x, escape, format, addtl_fmt, ...
": ", .
)),
escape = !!escape,
general_title = "",
footnote_order = c("number", "alphabet", "symbol", "general")
general_title = ""
)
),
.default = list()
Expand Down
5 changes: 5 additions & 0 deletions R/modify_source_note.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
#' @name modify_source_note
#'
#' @examplesIf identical(Sys.getenv("NOT_CRAN"), "true") || identical(Sys.getenv("IN_PKGDOWN"), "true")
#' # Example 1 ----------------------------------
#' tbl <- tbl_summary(trial, include = c(marker, grade), missing = "no") |>
#' modify_source_note("Results as of June 26, 2015")
#'
#' # Example 2 ----------------------------------
#' remove_source_note(tbl, source_note_id = 1)
NULL

#' @export
Expand Down
2 changes: 2 additions & 0 deletions man/modify_abbreviation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/modify_source_note.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/tbl_continuous.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/tbl_regression.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92ca979

Please sign in to comment.