Skip to content

Commit

Permalink
Merge 8827f8d into bfb529f
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed May 10, 2024
2 parents bfb529f + 8827f8d commit 8796a5b
Show file tree
Hide file tree
Showing 11 changed files with 378 additions and 360 deletions.
2 changes: 1 addition & 1 deletion R/g_forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ g_forest <- function(tbl,
checkmate::assert_true(is.null(col) | length(col) == 1 | length(col) == nrow(tbl))

# Extract info from table
mat <- matrix_form(tbl)
mat <- matrix_form(tbl, indent_rownames = TRUE)
mat_strings <- formatters::mf_strings(mat)
nlines_hdr <- formatters::mf_nlheader(mat)
nrows_body <- nrow(mat_strings) - nlines_hdr
Expand Down
2 changes: 1 addition & 1 deletion R/utils_ggplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#'
#' @export
rtable2gg <- function(tbl, fontsize = 12, colwidths = NULL, lbl_col_padding = 0) {
mat <- rtables::matrix_form(tbl)
mat <- rtables::matrix_form(tbl, indent_rownames = TRUE)
mat_strings <- formatters::mf_strings(mat)
mat_aligns <- formatters::mf_aligns(mat)
mat_indent <- formatters::mf_rinfo(mat)$indent
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/g_forest/g_forest.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/g_forest/g_forest_or.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/g_forest/g_forest_table_only.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8796a5b

Please sign in to comment.