Nothing
Code
(expect_error(check_pivot_spec(1)))
Output
<error/rlang_error>
Error:
! `spec` must be a data frame, not a number.
Code
(expect_error(check_pivot_spec(mtcars)))
Output
<error/rlang_error>
Error:
! `spec` must have `.name` and `.value` columns.
.name column must be a character vectorCode
(expect_error(check_pivot_spec(df)))
Output
<error/rlang_error>
Error:
! `spec$.name` must be a character vector, not an integer vector.
.value column must be a character vectorCode
(expect_error(check_pivot_spec(df)))
Output
<error/rlang_error>
Error:
! `spec$.value` must be a character vector, not an integer vector.
.name column must be uniqueCode
(expect_error(check_pivot_spec(df)))
Output
<error/rlang_error>
Error:
! `spec$.name` must be unique.
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.