Skip to content

Commit

Permalink
bug!: #130 correctly unquote filter_vars to shoosh warning
Browse files Browse the repository at this point in the history
```r
#> Warning: Unquoting language objects with `!!!` is deprecated as of rlang 0.4.0. Please
#> use `!!` instead.
#>
#> # Bad: dplyr::select(data, !!!enquo(x))
#>
#> # Good: dplyr::select(data, !!enquo(x)) # Unquote single quosure
#> dplyr::select(data, !!!enquos(x)) # Splice list of quosures
```
  • Loading branch information
egouldo committed Aug 29, 2024
1 parent 230c6fb commit 1af091c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/generate_outlier_subsets.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ apply_slice_conditionally <- function(x, filter_vars){
exclusion_set }
else {"complete"}), {
x %>%
filter(!!!filter_vars) %>%
filter(!!filter_vars) %>%
mutate(data =
pmap(list(data, outcome_colname, n_min, n_max),
.f = ~ slice_conditionally(..1,
Expand Down

0 comments on commit 1af091c

Please sign in to comment.