Learn R Programming

rtweet (version 1.2.1)

retrieve_errors: 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

Run this code
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()
}

Run the code above in your browser using DataLab