pm update, unit test fix?

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-02-08 13:48:06 +01:00
1 parent 4a54d59f70
commit 822e9de82c
13 files changed
+2117 -719

No files matched your search

+1 -4
View File
@@ -85,10 +85,7 @@ bug_drug_combinations <- function(x,
}
# use dplyr and tidyr if they are available, they are much faster!
if (pkg_is_available("dplyr", min_version = "1.0.0", also_load = FALSE) &&
pkg_is_available("tidyr", min_version = "1.0.0", also_load = FALSE)) {
across <- import_fn("across", "dplyr")
pivot_longer <- import_fn("pivot_longer", "tidyr")
if (identical(pivot_longer, import_fn("pivot_longer", "tidyr", error_on_fail = FALSE))) {
out <- x %>%
ungroup() %>%
mutate(mo = FUN(ungroup(x)[, col_mo, drop = TRUE], ...)) %>%