Error in init_oauth1.0
IndrajeetPatil opened this issue · 2 comments
IndrajeetPatil commented
Hi,
I tried to use the package, but it gives me the following error. What should I do?
## load package
library(botornot)
## select users
users <- c("realdonaldtrump", "netflix_bot",
"kearneymw", "dataandme", "hadleywickham",
"ma_salmon", "juliasilge", "tidyversetweets")
## get botornot estimates
data <- botornot(users)
#> Error code: 89
#> Invalid or expired token.
#> Error in if (tub == "tweets") {: argument is of length zero
## arrange by prob ests
data[order(data$prob_bot), ]
#> Error in data$prob_bot: object of type 'closure' is not subsettable
devtools::session_info()
#> Session info -------------------------------------------------------------
#> setting value
#> version R version 3.4.3 (2017-11-30)
#> system x86_64, mingw32
#> ui RTerm
#> language (EN)
#> collate English_United States.1252
#> tz America/New_York
#> date 2018-02-16
#> Packages -----------------------------------------------------------------
#> package * version date source
#> backports 1.1.2 2017-12-13 CRAN (R 3.4.1)
#> base * 3.4.3 2017-12-06 local
#> botornot * 0.0.1 2018-02-16 Github (mkearney/botornot@c8920a5)
#> compiler 3.4.3 2017-12-06 local
#> curl 3.1 2018-02-16 Github (gaborcsardi/curl@cf186e8)
#> datasets * 3.4.3 2017-12-06 local
#> devtools 1.13.4 2017-11-09 CRAN (R 3.4.3)
#> digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
#> evaluate 0.10.1 2017-06-24 CRAN (R 3.4.3)
#> graphics * 3.4.3 2017-12-06 local
#> grDevices * 3.4.3 2017-12-06 local
#> hms 0.4.1 2018-01-24 CRAN (R 3.4.1)
#> htmltools 0.3.6 2017-04-28 CRAN (R 3.4.1)
#> httr 1.3.1 2017-08-20 CRAN (R 3.4.3)
#> jsonlite 1.5 2017-06-01 CRAN (R 3.4.1)
#> knitr 1.19 2018-01-29 CRAN (R 3.4.1)
#> magrittr 1.5 2014-11-22 CRAN (R 3.4.2)
#> memoise 1.1.0 2017-04-21 CRAN (R 3.4.1)
#> methods * 3.4.3 2017-12-06 local
#> openssl 1.0 2018-02-02 CRAN (R 3.4.1)
#> pillar 1.1.0 2018-01-14 CRAN (R 3.4.1)
#> pkgconfig 2.0.1 2017-03-21 CRAN (R 3.4.1)
#> R6 2.2.2 2017-06-17 CRAN (R 3.4.1)
#> Rcpp 0.12.15 2018-01-20 CRAN (R 3.4.1)
#> readr 1.1.1 2017-05-16 CRAN (R 3.4.1)
#> rlang 0.1.6.9003 2018-02-16 Github (tidyverse/rlang@f538768)
#> rmarkdown 1.8 2017-11-17 CRAN (R 3.4.1)
#> rprojroot 1.3-2 2018-01-03 CRAN (R 3.4.1)
#> rtweet 0.6.17 2018-02-16 Github (mkearney/rtweet@7e106d6)
#> stats * 3.4.3 2017-12-06 local
#> stringi 1.1.6 2017-11-17 CRAN (R 3.4.2)
#> stringr 1.2.0 2017-02-18 CRAN (R 3.4.1)
#> tibble 1.4.2 2018-01-22 CRAN (R 3.4.1)
#> tools 3.4.3 2017-12-06 local
#> utils * 3.4.3 2017-12-06 local
#> withr 2.1.1.9000 2018-01-15 Github (jimhester/withr@df18523)
#> yaml 2.1.16 2017-12-12 CRAN (R 3.4.3)
Created on 2018-02-16 by the reprex package (v0.2.0).
mkearney commented
I'm closing this since it's the same root issue as the other active issue.