Nothing
#' Detects http errors and provides enhanced details.
#'
#' @param result A http response.
#'
#' @return invisible
detect_error <- function(result) {
if (httr::http_error(result)) {
stop(glue::glue(
"API request error with status code {httr::status_code(result)}.\n\n",
"Attempted method was {result$request$method}\n\n",
"Attempted URL was \"{result$request$url}\""
), call. = FALSE)
}
return(invisible())
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.