Nothing
Code
(expect_error(capture_across(dt, across(a:b, ~ log(.x, base = .y), base = 2))))
Output
<error/rlang_error>
Error in `across_fun()`:
! `dtplyr::across()` does not support `...` when a purrr-style lambda is used in `.fns`.
i Use a lambda instead.
i Or inline them via a purrr-style lambda.
Code
(expect_error(capture_across(dt, across(a:b, list(~ log(.x, base = .y)), base = 2)))
)
Output
<error/rlang_error>
Error in `FUN()`:
! `dtplyr::across()` does not support `...` when a purrr-style lambda is used in `.fns`.
i Use a lambda instead.
i Or inline them via a purrr-style lambda.
Code
capture_across(dt, across(a, 1))
Condition
Error in `across_funs()`:
! `.fns` argument to dtplyr::across() must be a NULL, a function, formula, or list
Code
capture_across(dt, across(a, list(1)))
Condition
Error in `FUN()`:
! .fns argument to dtplyr::across() must contain a function or a formula
x Problem with 1
Code
capture_if_all(dt, if_all(a, 1))
Condition
Error in `across_funs()`:
! `.fns` argument to dtplyr::across() must be a NULL, a function, formula, or list
Code
capture_if_all(dt, if_all(a, list(1)))
Condition
Error in `FUN()`:
! .fns argument to dtplyr::across() must contain a function or a formula
x Problem with 1
Code
(expect_error(capture_if_all(dt, if_all(c(a = x, b = y)))))
Output
<error/tidyselect:::error_disallowed_rename>
Error in `if_all()`:
! Can't rename variables in this context.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.