Code
(expect_error(spread(df, x, y)))
Output
<error/rlang_error>
Error in `spread()`:
! Each row of output must be identified by a unique combination of keys.
i Keys are shared for 2 rows
* 2, 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.