Nothing
Code
(expect_error(hoist(df, x, "b", .ptype = list(b = double()))))
Output
<error/vctrs_error_cast>
Error in `hoist()`:
! Can't convert `..1` <list> to <double>.
Code
(expect_error(hoist(df, x, "b", .ptype = list(b = integer()))))
Output
<error/vctrs_error_scalar_type>
Error in `hoist()`:
! `..1` must be a vector, not a symbol.
Code
(expect_error(df %>% hoist(y)))
Output
<error/rlang_error>
Error in `hoist()`:
! `.data[[.col]]` must be a list, not the number 1.
Code
(expect_error(df %>% hoist(x, 1)))
Output
<error/rlang_error>
Error in `hoist()`:
! All elements of `...` must be named.
Code
(expect_error(df %>% hoist(x, a = "a", a = "b")))
Output
<error/rlang_error>
Error in `hoist()`:
! The names of `...` must be unique.
Code
(expect_error(hoist(df, a, xx = 1)))
Output
<error/rlang_error>
Error in `hoist()`:
! `.data[[.col]]` must be a list, not a <tbl_df/tbl/data.frame> object.
Code
hoist(1)
Condition
Error in `hoist()`:
! `.data` must be a data frame, not a number.
Code
hoist(df)
Condition
Error in `hoist()`:
! `.col` is absent but must be supplied.
Code
hoist(df, a, .remove = 1)
Condition
Error in `hoist()`:
! `.remove` must be `TRUE` or `FALSE`, not the number 1.
Code
hoist(df, a, .ptype = 1)
Condition
Error in `hoist()`:
! `.ptype` must be `NULL`, an empty ptype, or a named list of ptypes.
Code
hoist(df, a, .transform = 1)
Condition
Error in `hoist()`:
! `.transform` must be `NULL`, a function, or a named list of functions.
Code
hoist(df, a, .simplify = 1)
Condition
Error in `hoist()`:
! `.simplify` must be a list or a single `TRUE` or `FALSE`.
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.