Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

590 Fix typo in tm_t_exposure footnote #606

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/tm_t_exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ template_exposure <- function(parentname,
parsed_basic_table_args <- teal.widgets::parse_basic_table_args(
teal.widgets::resolve_basic_table_args(
user_table = basic_table_args,
module_table = teal.widgets::basic_table_args(main_footer = paste0("* Person time is the sum of ", paramcd_label))
module_table = teal.widgets::basic_table_args(main_footer = paste0("* Patient time is the sum of ", paramcd_label))
)
)

Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-tm_t_exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ testthat::test_that("template_exposure generates correct expressions with defaul
}),
layout_prep = quote(split_fun <- drop_split_levels),
layout = quote(
lyt <- rtables::basic_table(main_footer = "* Person time is the sum of TDURD") %>%
lyt <- rtables::basic_table(main_footer = "* Patient time is the sum of TDURD") %>%
rtables::split_cols_by("SEX") %>%
rtables::add_colcounts() %>%
summarize_patients_exposure_in_cols(
Expand Down Expand Up @@ -68,7 +68,7 @@ testthat::test_that("template_exposure generates correct expressions with custom
}),
layout_prep = quote(split_fun <- drop_split_levels),
layout = quote(
lyt <- rtables::basic_table(main_footer = "* Person time is the sum of myTDURD") %>%
lyt <- rtables::basic_table(main_footer = "* Patient time is the sum of myTDURD") %>%
rtables::split_cols_by("SEX") %>%
rtables::add_colcounts() %>%
summarize_patients_exposure_in_cols(
Expand Down Expand Up @@ -118,7 +118,7 @@ testthat::test_that("template_exposure generates correct expressions with paramc
}),
layout_prep = quote(split_fun <- drop_split_levels),
layout = quote(
lyt <- rtables::basic_table(main_footer = "* Person time is the sum of Total Duration (Days)") %>%
lyt <- rtables::basic_table(main_footer = "* Patient time is the sum of Total Duration (Days)") %>%
rtables::split_cols_by("SEX") %>%
rtables::add_colcounts() %>%
summarize_patients_exposure_in_cols(
Expand Down