Description Usage Arguments Value Examples
check_for_status
1 2 | check_for_status(x, type = "error", message_function = message_standard,
...)
|
type |
character, one of "error", "warning", "message" |
message_function |
function, builds message,
takes |
... |
additional arguements for |
If request was successful, an invisible TRUE.
Otherwise, raised a classed http error or warning, as generated by http_condition
1 2 | x <- httr::GET("http://httpbin.org/status/404")
check_for_status(x, type = "error", message_function = message_verbose)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.