Skip to content

Commit eacb343

Browse files
committed
comment code
1 parent bad5749 commit eacb343

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

R/data_tabulate.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,9 @@ print_md.datawizard_tables <- function(x, big_mark = NULL, ...) {
937937
x$Variable <- NULL
938938
x$Group <- NULL
939939

940+
# this function is used by all four supportes format, markdown, text, html
941+
# and tt (tinytable). For tt, we sometimes have format "html" and backend = "tt",
942+
# so we need to check for this special case
940943
backend <- switch(
941944
format,
942945
html = ,

R/data_xtabulate.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,16 @@ print_html.datawizard_crosstab <- function(x, big_mark = NULL, ...) {
226226
x$Group <- NULL
227227
}
228228

229-
# prepare table arguments
229+
# this function is used by all four supportes format, markdown, text, html
230+
# and tt (tinytable). For tt, we sometimes have format "html" and backend = "tt",
231+
# so we need to check for this special case
230232
backend <- switch(
231233
format,
232234
html = ,
233235
tt = .check_format_backend(...),
234236
format
235237
)
238+
# prepare table arguments
236239
fun_args <- list(
237240
format(x, big_mark = big_mark, format = format, ...),
238241
caption = caption,

0 commit comments

Comments
 (0)