form_list | R Documentation |
form_list(
pid = get_default_pid(),
url = get_default_url(),
un = get_default_un(),
pw = get_default_pw(),
retries = get_retries(),
orders = get_default_orders(),
tz = get_default_tz()
)
pid |
The numeric ID of the project, e.g.: 2. Default: Set default See |
url |
The ODK Central base URL without trailing slash. Default: Set default See |
un |
The ODK Central username (an email address).
Default: |
pw |
The ODK Central password.
Default: |
retries |
The number of attempts to retrieve a web resource. This parameter is given to Default: 3. |
orders |
(vector of character) Orders of datetime elements for lubridate. Default:
|
tz |
A timezone to convert dates and times to. Read |
A tibble with one row per form and all given form metadata as cols.
Column names are sanitized into snake_case
.
Nested columns (review start and created by) are flattened and prefixed.
The column xml_form_id
is replicated as fid
according to ruODK
naming
standards.
https://docs.getodk.org/central-api-form-management/#list-all-forms
Other form-management:
form_detail()
,
form_schema()
,
form_schema_ext()
,
form_xml()
## Not run:
# See vignette("setup") for setup and authentication options
# ruODK::ru_setup(svc = "....svc", un = "me@email.com", pw = "...")
# With default pid
fl <- form_list()
# With explicit pid
fl <- form_list(pid = 1)
class(fl)
# > c("tbl_df", "tbl", "data.frame")
# Filter out draft forms (published_at=NA)
only_published_forms <- fl %>% dplyr::filter(is.na(published_at))
# Note: older ODK Central versions < 1.1 have published_at = NA for both
# published and draft forms. Drafts have NA for version and hash.
only_published_forms <- fl %>% dplyr::filter(is.na(version) & is.na(hash))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.