retrieve_errors: Expose errors of the response

View source: R/api_v2_responses.R

retrieve_errorsR Documentation

Expose errors of the response

Description

Expose errors of the response

Usage

retrieve_errors(expr = NULL)

Arguments

expr

An expression that might cause an error. If NULL it looks for the last error.

Examples

if (FALSE){
  new_rule <- stream_add_rule(list(value = "#rstats", tag = "rstats1"))
  stream_add_rule(list(value = "#rstats", tag = "rstats2")) # ERROR
  # See the full information provided by the API:
  retrieve_errors(stream_add_rule(list(value = "#rstats", tag = "rstats2")))
  retrieve_errors()
}

rtweet documentation built on Oct. 17, 2023, 1:11 a.m.