yell_if_error: Warn about failed web requests and give helpful...

yell_if_errorR Documentation

Warn about failed web requests and give helpful troubleshooting tips.

Description

[Stable]

Usage

yell_if_error(response, url, un, pw, pid = NULL, fid = NULL)

Arguments

response

A httr response object

url

A URL (character)

un

A username (character)

pw

A password (character)

pid

A project ID (numeric, optional)

fid

A form ID (character, optional)

Details

A wrapper around httr::stop_for_status with a more helpful error message. Examples: see tests for project_list. This function is used internally but may be useful for debugging and ruODK development.

Value

The response object

See Also

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


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