[Stable]

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(), ru_settings(), ru_setup(), 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("", "", "", "", "", ""))