Internal function: Handles errors while calling the Datawrapper-API.

dw_handle_errors(r)

Arguments

r

Required. A httr-response-object.

Value

A list with the content of the respone-object - or an error,

Author

Benedict Witzenberger

Examples

if (FALSE) dw_handle_errors(r)