-
Notifications
You must be signed in to change notification settings - Fork 3
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
boomer and grouped operations #93
Comments
Maybe with Meanwhile maybe options(conflicts.policy = list(warn = FALSE))
library(dplyr)
library(boomer)
fun <- function() {
boom_on()
x <- tibble(a = 1:3)
boom_off()
mutate(x, .by = a, b = a + 1)
}
fun()
#> 💣 tibble(a = 1:3)
#> · 💣 💥 1:3
#> · [1] 1 2 3
#> ·
#> 💥 tibble(a = 1:3)
#> # A tibble: 3 × 1
#> a
#> <int>
#> 1 1
#> 2 2
#> 3 3
#>
#> 💣 💥 boom_off()
#> NULL
#> # A tibble: 3 × 2
#> a b
#> <int> <dbl>
#> 1 1 2
#> 2 2 3
#> 3 3 4 Created on 2024-01-18 with reprex v2.0.2 |
Hm... I do want to see the results of the |
OK I think I know how to do it, however, in the above call using the base pipe it's worth noting that the tibble call is also "inside", with the magrittr pipe it would be outside |
Created on 2024-01-18 with reprex v2.0.2
I was only somewhat surprised to see the multiple invocations of
a + 1
shown here, but for larger data this becomes difficult to review. If we collected the results (as suggested in #72), we could render as an HTML document or show in a Shiny app, and collapse/expand/filter as needed.Alternatively, if there was a way to stop booming everything inside
mutate()
, those wouldn't be shown.options(boomer.ignore = "mutate")
doesn't do the right thing here, do we needoptions(boomer.ignore.inside)
?The text was updated successfully, but these errors were encountered: