I am trying to connect to developer account to collect tweets. I have just been approved for the account, and I have all four of the credential codes. However, I am unable to create the token and and have the identical(token, get_token()) call to output "TRUE". I am not sure what the issue is and I have checked to make sure the keys are accurate.
Expected behavior
identical(get_token(), token) to output TRUE
Reproduce the problem
## insert code here
> devtools::install_github("mkearney/rtweet")
Skipping install of 'rtweet' from a github remote, the SHA1 (737e0f42) has not changed since last install.
Use `force = TRUE` to force installation
> library(rtweet)
>
>
> consumer_key = "******************************************************"
> consumer_secret = "***************************************************"
> access_secret = "*******************************************************"
> access_token = "*******************************************************"
>
> token = create_token(
+ app = "Dsch*******"
+ consumer_key = consumer_key,
+ consumer_secret = consumer_secret,
+ access_token = access_secret,
+ access_secret = access_token)
>
>
> identical(token, get_token())
[1] FALSE
rtweet version
‘0.6.7.9000’
Session info
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Problem
I am trying to connect to developer account to collect tweets. I have just been approved for the account, and I have all four of the credential codes. However, I am unable to create the token and and have the identical(token, get_token()) call to output "TRUE". I am not sure what the issue is and I have checked to make sure the keys are accurate.
Expected behavior
identical(get_token(), token) to output TRUE
Reproduce the problem
rtweet version
‘0.6.7.9000’
Session info
R version 3.5.0 (2018-04-23) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages: [1] datasets utils graphics grDevices stats methods base
other attached packages: [1] rtweet_0.6.7.9000 RMySQL_0.10.15 DBI_1.0.0 dplyr_0.7.5
[5] plyr_1.8.4 MASS_7.3-49
loaded via a namespace (and not attached): [1] Rcpp_0.12.17 pillar_1.3.0 compiler_3.5.0 git2r_0.21.0 bindr_0.1.1
[6] iterators_1.0.9 tools_3.5.0 testthat_2.0.0 digest_0.6.15 pkgbuild_1.0.0
[11] pkgload_1.0.0 jsonlite_1.5 memoise_1.1.0 tibble_1.4.2 debugme_1.1.0
[16] pkgconfig_2.0.1 rlang_0.2.2 foreach_1.4.4 cli_1.0.0 rstudioapi_0.7
[21] curl_3.2 yaml_2.1.19 bindrcpp_0.2.2 knitr_1.20 withr_2.1.2
[26] httr_1.3.1 desc_1.2.0 devtools_1.13.5.9000 rprojroot_1.3-2 tidyselect_0.2.4
[31] glue_1.3.0 R6_2.2.2 processx_3.1.0 purrr_0.2.5 callr_2.0.4
[36] magrittr_1.5 backports_1.1.2 codetools_0.2-15 usethis_1.3.0 assertthat_0.2.0
[41] openssl_1.0.2 crayon_1.3.4
Token