Skip to content

Commit cd546ee

Browse files
authored
Merge pull request #12 from MarselScheer/feat/dplyr.dots-deprecated
Feat/dplyr.dots deprecated
2 parents 7cca5a3 + 9d2bc0a commit cd546ee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Version 1.1.8.9000
33
=========================
44

5-
* placeholder for next development-cycle
5+
* address deprecated .dots argument of group_by() due to upcoming dplyr version 1.2.0
66

77
Version 1.1.8
88
=========================

R/define_simulation.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ define_simulation <- function(pf, discard_generated_data, cluster,
4040
)
4141
res <- purrr::map(res, ~ do.call("bind_or_combine", .))
4242
if (!is.null(summary_fun) && !is.null(group_for_summary)) {
43-
class(group_for_summary) <- "list"
4443
res <- lapply(summary_fun, function(f) {
4544
purrr::map(res, ~ dplyr::summarize_all(
46-
dplyr::group_by(., .dots = group_for_summary), f
45+
dplyr::group_by(., dplyr::pick(dplyr::all_of(group_for_summary))), f
4746
))
4847
})
4948
} else {

0 commit comments

Comments
 (0)