Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
edit FAQ format
Browse files Browse the repository at this point in the history
  • Loading branch information
mkearney committed Jun 20, 2018
1 parent ce9c0bf commit 3dc4e97
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions vignettes/FAQ.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ vignette: >
---

```{r, include=FALSE}
knitr::opts_chunk$set(
echo = TRUE, eval = FALSE, comment = "#>", collapse = TRUE)
knitr::opts_chunk$set(echo = TRUE, eval = FALSE, comment = "#>", collapse = TRUE)
```

## `Error in init_oauth1.0(...`
Expand All @@ -20,14 +19,14 @@ knitr::opts_chunk$set(

Occurs when attempting to create a token

``` r
```{r}
## 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`
# `Error in init_oauth1.0(endpoint, app, permission = params$permission) :
# client error: (401) Unauthorized`
```

#### Solutions
Expand All @@ -47,20 +46,20 @@ Occurs when attempting to create a token

Occurs when attempting to create a token (using in-browser authorization method)

``` r
```{r}
## 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.
#Error in oauth_listener(authorize_url, is_interactive) :
# httpuv package required to capture OAuth credentials.
```

#### Solutions
1. Install the **{httpuv}** package

``` r
```{r}
install.packages("httpuv")
```

Expand All @@ -70,16 +69,16 @@ install.packages("httpuv")

Occurs when sending request to Twitter API. It means you have invalid or expired keys stored in access token.

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

#### Solutions
1. Create new token using the keys from your previously created Twitter application found at https://apps.twitter.com
1. In your app page at https://apps.twitter.com/ under the `Keys and Access Tokens` tab, click `Regenerate Consumer Key and Secret`. Create a new token using the new key and secret.

``` r
```{r}
## these are fake keys
#> create_token(
#> app = "rtweet_token",
Expand Down

0 comments on commit 3dc4e97

Please sign in to comment.