recipes now support ptype extraction
Closed this issue · 1 comments
EmilHvitfeldt commented
This will help with validations when using a recipe by itself in vetiver
1.1.0 included recipes_ptype()
and recipes_ptype_validate()
older recipes that doesn't have information will return NULL
juliasilge commented
Originally posted by @juliasilge in tidymodels/recipes#1329 (review)
In vetiver, we currently require users to pass in their "input prototype data" explicitly, as shown in this test. With the change in this PR, we'd be able to get the
ptype
out automatically from the recipe itself, which is great!We would change
vetiver_ptype.recipe()
so it reads the value off the recipe instead of looking for it from the user in the dots.