You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This needs to marinate, but here are a few thoughts after discussing with @rich-iannone:
maybe should be a separate package (something lightweight)
maybe have packages write this as YAML, e.g.
pkg: pkgnamex:
y:
z: []yml_validate: is.numericyml_desc: this is what z is yml_validate_order: true # check that z is after y is after x
if using this approach, have some syntax? e.g. yml_validate: ~ is.numeric(.x) && ~length(.x) == 1
how to store and retrieve?
A completely different approach is to have helper functions to create function factories for packages in the format ymlthis_pkgname() that’s has internal validation etc.
malcolmbarrett
changed the title
Registry system for YAML fields
Registry system for documentation and validation of YAML fields
Jun 25, 2019
Packages could use this to formally specify and document their YAML fields, e.g.
register_toplevel_yaml(data.frame(field = "type", validate = pkg::is_function(), doc = "This is what this does"))
Save to an environment yamlthis checks for somehow?
The text was updated successfully, but these errors were encountered: