x = function(df = iface(col1 = integer ~ "an integer column" ), ...) {
df = ivalidate(df,...)
}
input=tibble::tibble(col2 = c(1,2,3))
# This fails because col1 is missing
try(x(input))
# This fixes it for this input
x(input, .imap=imapper(col1 = col2))
Run the code above in your browser using DataLab