View source: R/project_detail.R
project_detail | R Documentation |
While the API endpoint will return all details for one project,
project_detail
will fail with incorrect or missing
authentication.
project_detail(
pid = get_default_pid(),
url = get_default_url(),
un = get_default_un(),
pw = get_default_pw(),
retries = get_retries()
)
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. |
A tibble with exactly one row for the project and all project
metadata as columns as per ODK Central API docs.
Column names are renamed from ODK's camelCase
to snake_case
.
Values differ to values returned by ODK Central API:
archived: FALSE (if NULL) else TRUE
dates: NA if NULL
https://docs.getodk.org/central-api-project-management/#getting-project-details
Other project-management:
project_create()
,
project_list()
## Not run:
# See vignette("setup") for setup and authentication options
# ruODK::ru_setup(svc = "....svc", un = "me@email.com", pw = "...")
pd <- project_detail()
pd %>%
dplyr::select(-"verbs") %>%
knitr::kable(.)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.