Skip to content

Commit c6469fe

Browse files
committed
Address PR feedback: fix slice_min and bump dplyr constraint
1 parent 7e8012c commit c6469fe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ SystemRequirements: pandoc (>= 1.12.3), pandoc-citeproc
3030
Depends:
3131
R (>= 4.1.0)
3232
Imports:
33-
dplyr (>= 0.8.0),
33+
dplyr (>= 1.0.0),
3434
ggplot2 (>= 3.4.0),
3535
ggridges (>= 0.5.5),
3636
glue,

R/mcmc-intervals.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ mcmc_areas_data <- function(x,
742742
inner_join(point_ests, by = "parameter") %>%
743743
group_by(.data$parameter) %>%
744744
mutate(diff = abs(.data$m - .data$x)) %>%
745-
dplyr::slice_min(.data$diff, n = 1) %>%
745+
dplyr::slice_min(order_by = .data$diff, n = 1) %>%
746746
select(all_of(c("parameter", "x", "m"))) %>%
747747
rename(center = "x") %>%
748748
ungroup()

0 commit comments

Comments
 (0)