warn_when_request_errored: Warn if response errored

View source: R/request.R

warn_when_request_erroredR Documentation

Warn if response errored

Description

Warn if an httr response errored. It also returns a tidy warning message.

Usage

warn_when_request_errored(response)

Arguments

response

A response object.

Value

A scalar character vector with a warning message, or the string 'OK' if the response was successful, although this function is called mostly for its side effect, i.e., the triggering of a warning.


ramiromagno/ensemblr documentation built on Oct. 19, 2023, 11:12 a.m.