Nothing
test_that("imappper works", {
x = function(df = iface(col1 = integer ~ "an integer column" ), ...) {
df = ivalidate(df,...)
return(df)
}
input=tibble::tibble(col2 = c(1,2,3))
# This fails because col1 is missing
expect_error(
x(input)
)
# This fixes it for this input
tmp = x(input, .imap=imapper(col1 = col2))
expect_equal(tmp$col1, input$col2)
})
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.