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
Given an object to tibblify and a specification for this there might be some fields that are not specified. Now, this could be because:
you don't care about these additional fields
an optional field has changed the name or there are new fields
some fields simply vary
The specification should help to clarify what's the case (a bit similar to readr::cols() vs. readr::cols_only()). Therefore, the spec should get these arguments:
Given an object to tibblify and a specification for this there might be some fields that are not specified. Now, this could be because:
The specification should help to clarify what's the case (a bit similar to
readr::cols()vs.readr::cols_only()). Therefore, the spec should get these arguments:unspecified_fields = c("inform", "warn", "error", "ignore", "collect")"ignore"implies that you know there are (or might be) other fields but you deliberately ignore them"error"implies that you don't expect other fields, e.g. useful when getting data from an API and storing it"inform"/"warn"not sure if both are neededunspecified_fields_tois a string specifying the column name where unspecified fields should end up in (similar totib_multi()How to handle fields whose specification cannot be guessed? #38).known_fieldsto specify the keys of other fields you know exist but you decide to ignoreThings to consider
known_fieldsand have a specificationknown_fieldsto be a list so that they can be used for nested keys as well