Parse a form_schema into a tibble of fields with name, type, and path.Source:
form_schema_parse(fs, path = "Submissions", verbose = get_ru_verbose())
The output of form_schema as nested list
The base path for form fields. Default: "Submissions".
form_schema_parserecursively steps into deeper nesting levels, which are reflected as separate OData tables. The returned value in
pathreflects the XForms group name, which translates to separate screens in ODK Collect. Non-repeating form groups will be flattened out into the main Submissions table. Repeating groups are available as separate OData tables.
Whether to display debug messages or not.
vignette("setup", package = "ruODK")to learn how
ruODK's verbosity can be set globally or per function.
This function is used by
form_schema for older versions of
ODK Central (pre 0.8). These return the form schema as XML, requiring the
quite involved code of
form_schema_parse, while newer ODK
Central versions return JSON, which is parsed directly in
form_schema returned from ODK Central versions < 0.8 is a nested list
of lists containing the form definition.
The form definition consists of fields (with a type and name), and form
groups, which are rendered as separate ODK Collect screens.
Form groups in turn can also contain form fields.
form_schema_parse recursively unpacks the form and extracts the
name and type of each field. This information then informs