Skip to content

Commit

Permalink
stash changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Jun 17, 2023
1 parent abf3f51 commit ebf461d
Show file tree
Hide file tree
Showing 11 changed files with 62 additions and 92 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export(analyze_num_patients)
export(analyze_patients_exposure_in_cols)
export(analyze_vars_in_cols)
export(append_varlabels)
export(arrange_grobs)
export(as.rtable)
export(combine_counts)
export(combine_groups)
Expand Down Expand Up @@ -128,6 +129,7 @@ export(g_lineplot)
export(g_step)
export(g_waterfall)
export(get_smooths)
export(groups_list_to_df)
export(h_adlb_worsen)
export(h_adsl_adlb_merge_using_worst_flag)
export(h_ancova)
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

### Miscellaneous
* Remove examples for unexported functions.
* Export functions `has_count_in_cols`, `has_counts_difference`, `combine_counts`, `h_tab_rsp_one_biomarker`, `groups_list_to_df`.
* Export functions `has_count_in_cols`, `has_counts_difference`, `combine_counts`, `h_tab_rsp_one_biomarker`, `groups_list_to_df`, `arrange_grobs`.
* Updated README to include installation instructions for CRAN.
* Began deprecation of `indent_mod` argument and replace it with the `.indent_mods` argument in `summarize_num_patients` and `analyze_num_patients`.

Expand Down
27 changes: 27 additions & 0 deletions R/utils_grid.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,34 @@ stack_grobs <- function(...,
#' @param padding_wt unit of length 1, horizontal space between each grob.
#'
#' @return A `grob`.
#' @examples
#' library(grid)
#'
#' \donttest{
#' num <- lapply(1:9, textGrob)
#' grid::grid.newpage()
#' grid.draw(arrange_grobs(grobs = num, ncol = 2))
#'
#' showViewport()
#'
#' g1 <- circleGrob(gp = gpar(col = "blue"))
#' g2 <- circleGrob(gp = gpar(col = "red"))
#' g3 <- textGrob("TEST TEXT")
#' grid::grid.newpage()
#' grid.draw(arrange_grobs(g1, g2, g3, nrow = 2))
#'
#' showViewport()
#'
#' grid::grid.newpage()
#' grid.draw(arrange_grobs(g1, g2, g3, ncol = 3))
#'
#' grid::grid.newpage()
#' grid::pushViewport(grid::viewport(layout = grid::grid.layout(1, 2)))
#' vp1 <- grid::viewport(layout.pos.row = 1, layout.pos.col = 2)
#' grid.draw(arrange_grobs(g1, g2, g3, ncol = 2, vp = vp1))
#'
#' showViewport()
#' }
#' @export
arrange_grobs <- function(...,
grobs = list(...),
Expand Down
30 changes: 29 additions & 1 deletion man/arrange_grobs.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/assertions.Rd

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

4 changes: 0 additions & 4 deletions man/groups_list_to_df.Rd

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

47 changes: 0 additions & 47 deletions man/h_prop_diff_test.Rd

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

31 changes: 0 additions & 31 deletions man/prop_diff_test.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/response_biomarkers_subgroups.Rd

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

5 changes: 0 additions & 5 deletions man/response_subgroups.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/rtables_access.Rd

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

0 comments on commit ebf461d

Please sign in to comment.