yell_if_missing: Abort on missing ODK Central credentials (url, username,...

yell_if_missingR Documentation

Abort on missing ODK Central credentials (url, username, password).

Description

[Stable]

Usage

yell_if_missing(url, un, pw, pid = NULL, fid = NULL, iid = NULL)

Arguments

url

A URL (character)

un

A username (character)

pw

A password (character)

pid

A project ID (numeric, optional)

fid

A form ID (character, optional)

iid

A submission instance ID (character, optional)

Details

This is a helper function to pat down ruODK functions for missing credentials and stop with a loud but informative yell.

See Also

Other ru_settings: odata_svc_parse(), parse_odkc_version(), ru_settings(), ru_setup(), semver_gt(), semver_lt(), yell_if_error()

Examples

testthat::expect_error(yell_if_missing("", "username", "password"))
testthat::expect_error(yell_if_missing("url", "", "password"))
testthat::expect_error(yell_if_missing("url", "username", ""))
testthat::expect_error(yell_if_missing(NULL, "", ""))
testthat::expect_error(yell_if_missing("", "", ""))
testthat::expect_error(yell_if_missing("", "", "", ""))
testthat::expect_error(yell_if_missing("", "", "", "", ""))
testthat::expect_error(yell_if_missing("", "", "", "", "", ""))

dbca-wa/ruODK documentation built on March 20, 2024, 12:19 p.m.