powered by
When creating operations from api one can define how the response from http should be handled. These functions can be used for simple result handling.
content_or_stop(x)content_or_warning(x)content_or_message(x)
content_or_warning(x)
content_or_message(x)
A response object from httr package (see response object in httr package documentation)
Content of http response
content_or_warning: Returns content or issues a warning
content_or_warning
content_or_message: Returns content or prints a message
content_or_message
See get_operations for details.
get_operations
# NOT RUN { operations <- get_operations(api, handle_response = content_or_stop) # }
Run the code above in your browser using DataLab