inst/doc/FAQ.R

## ---- include=FALSE-----------------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, eval = FALSE, comment = "#>", collapse = TRUE)

## -----------------------------------------------------------------------------
#  ## these are fake keys
#  #> create_token(
#  #>   app = "rtweet_token",
#  #>   consumer_key = "XYznzPFOFZR2a39FwWKN1Jp41",
#  #>   consumer_secret = "CtkGEWmSevZqJuKl6HHrBxbCybxI1xGLqrD5ynPd9jG0SoHZbD")
#  # `Error in init_oauth1.0(endpoint, app, permission = params$permission) :
#  #  client error: (401) Unauthorized`

## -----------------------------------------------------------------------------
#  ## these are fake keys
#  #> create_token(
#  #>   app = "rtweet_token",
#  #>   consumer_key = "XYznzPFOFZR2a39FwWKN1Jp41",
#  #>   consumer_secret = "CtkGEWmSevZqJuKl6HHrBxbCybxI1xGLqrD5ynPd9jG0SoHZbD")
#  #Error in oauth_listener(authorize_url, is_interactive) :
#  #  httpuv package required to capture OAuth credentials.

## -----------------------------------------------------------------------------
#  install.packages("httpuv")

## -----------------------------------------------------------------------------
#  #> search_tweets("lang:en")
#  #Warning: 89 - Invalid or expired token.

## -----------------------------------------------------------------------------
#  ## these are fake keys
#  #> create_token(
#  #>   app = "rtweet_token",
#  #>   consumer_key = "XYznzPFOFZR2a39FwWKN1Jp41",
#  #>   consumer_secret = "CtkGEWmSevZqJuKl6HHrBxbCybxI1xGLqrD5ynPd9jG0SoHZbD")

Try the rtweet package in your browser

Any scripts or data that you put into this service are public.

rtweet documentation built on Jan. 11, 2020, 9:11 a.m.