Skip to contents

[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

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