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

fixes error in adverse events when ASTDY is of difftime type #1284

Merged
merged 2 commits into from
Dec 5, 2024
Merged
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
8 changes: 6 additions & 2 deletions R/tm_g_pp_adverse_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ template_adverse_events <- function(dataname = "ANL",
aeterm, tox_grade, causality, outcome, action, time, decod
) %>%
dplyr::arrange(dplyr::desc(tox_grade)) %>%
`colnames<-`(col_labels(dataname, fill = TRUE)[vars])

`colnames<-`(col_labels(dataname, fill = TRUE)[vars]) %>%
dplyr::mutate( # Exception for columns of type difftime that is not supported by as_listing
dplyr::across(
dplyr::where(~ inherits(., what = "difftime")), ~ as.double(., units = "auto")
)
)
table <- rlistings::as_listing(
table,
key_cols = NULL,
Expand Down
Loading