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 May 29, 2024, 7:47 a.m.