Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Nov 15, 2024
1 parent bfcd651 commit c572d97
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ LICENSE

# dev
tmp/
ae.pptx
ae_summary.pptx
dd.pptx
dm.pptx
dor.pptx
‘output.pptx’
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Authors@R: c(
person("Chenkai", "Lv", role = "aut")
)
Description: Clinical TLG slide automation empowered by `rtables`, `rlistings` and `ggplot2`.
License: Apache License 2.0 | file LICENSE
License: Apache License 2.0
URL: https://github.com/insightsengineering/autoslider.core
BugReports: https://github.com/insightsengineering/autoslider.core/issues
Depends:
Expand Down
2 changes: 1 addition & 1 deletion R/t_ae_slide.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' )
#' out <- t_ae_slide(adsl, adae, "TRT01A")
#' print(out)
#' generate_slides(out, "ae.pptx")
#' generate_slides(out, paste0(tempdir(), "/ae.pptx"))
t_ae_slide <- function(adsl, adae, arm = "TRT01A",
split_by_study = FALSE, side_by_side = NULL) {
assert_that(has_name(adae, "AEDECOD"))
Expand Down
2 changes: 1 addition & 1 deletion R/t_ae_summary_slide.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#' )
#' )
#' print(out)
#' generate_slides(out, "ae_summary.pptx")
#' generate_slides(out, paste0(tempdir(), "/ae_summary.pptx"))
t_ae_summ_slide <- function(adsl, adae, arm = "TRT01A",
dose_adjust_flags = NA,
dose_adjust_labels = NA,
Expand Down
2 changes: 1 addition & 1 deletion R/t_dd_slide.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' adsl <- eg_adsl %>% preprocess_t_dd()
#' out1 <- t_dd_slide(adsl, "TRT01A")
#' print(out1)
#' generate_slides(out1, "dd.pptx")
#' generate_slides(out1, paste0(tempdir(), "/dd.pptx"))
#'
#' out2 <- t_dd_slide(adsl, "TRT01A", split_by_study = TRUE)
#' print(out2)
Expand Down
2 changes: 1 addition & 1 deletion R/t_dm_slide.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#' adsl <- eg_adsl
#' out1 <- t_dm_slide(adsl, "TRT01P", c("SEX", "AGE", "RACE", "ETHNIC", "COUNTRY"))
#' print(out1)
#' generate_slides(out1, "dm.pptx")
#' generate_slides(out1, paste0(tempdir(), "/dm.pptx"))
#'
#' out2 <- t_dm_slide(adsl, "TRT01P", c("SEX", "AGE", "RACE", "ETHNIC", "COUNTRY"),
#' split_by_study = TRUE
Expand Down
2 changes: 1 addition & 1 deletion R/t_dor_slide.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' dplyr::mutate(TRT01P = factor(TRT01P, levels = c("A: Drug X", "B: Placebo", "C: Combination")))
#' out <- t_dor_slide(adsl, adtte)
#' print(out)
#' generate_slides(out, "dor.pptx")
#' generate_slides(out, paste0(tempdir(), "/dor.pptx"))
t_dor_slide <- function(adsl, adtte, arm = "TRT01P", refgroup = NULL) {
assert_that(has_name(adsl, arm))
assert_that(has_name(adtte, "CNSR"))
Expand Down
2 changes: 1 addition & 1 deletion R/to_slides.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#' t_dm_slide(adsl, "TRT01P", c("SEX", "AGE")) %>%
#' generate_slides()
generate_slides <- function(outputs,
outfile = "output.pptx",
outfile = paste0(tempdir(), "/output.pptx"),
template = file.path(system.file(package = "autoslider.core"), "theme/basic.pptx"),
fig_width = 9, fig_height = 6, t_lpp = 20, t_cpp = 200, l_lpp = 20, l_cpp = 150, ...) {
if (any(c(
Expand Down
2 changes: 1 addition & 1 deletion man/generate_slides.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/t_ae_slide.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/t_ae_summ_slide.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/t_dd_slide.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/t_dm_slide.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/t_dor_slide.Rd

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

0 comments on commit c572d97

Please sign in to comment.