I installed twitteR in the way mentioned in earlier issues and also installed httr in the way mentioned in earlier issues. But I am still getting the errors as mentioned below.
library(devtools)
library(twitteR)
devtools::install_version("httr", version="0.6.0", repos="http://cran.us.r-project.org")
library(httr)
library(bit64)
library(base64enc)
api_key <- " 181CeaUeVq75Z2UDuggt6NlBP"
api_secret <- " QBr3CEwY9oqOtUmMCnIOGVf90DET6zf5Rnz5VyFbTVYXqf3Cpd"
access_token <- " 2582011494-alxoqAWilWVz9LyYRgphumXdKZrfSDcj7iQBBID"
access_secret <- " igBU0uegV0iTAQczB66ftco6yFIWigpNYOqUeO7EyOlFf"
setup_twitter_oauth("api_key", "api_secret","access_token","access_secret")
[1] "Using direct authentication"
Error in check_twitter_oauth() : OAuth authentication error:
This most likely means that you have incorrectly called setup_twitter_oauth()'
tweets_data = searchTwitter("sensex",lang="en",n=2000,since = "2017-04-06",until = "2017-04-07")
Error in twInterfaceObj$doAPICall(cmd, params, "GET", ...) :
OAuth authentication error:
This most likely means that you have incorrectly called setup_twitter_oauth()'
tweets_data_df <- do.call("rbind",lapply(tweets_data,as.data.frame))
Error in lapply(tweets_data, as.data.frame) :
object 'tweets_data' not found
Can somebody help?
I installed twitteR in the way mentioned in earlier issues and also installed httr in the way mentioned in earlier issues. But I am still getting the errors as mentioned below. library(devtools) library(twitteR) devtools::install_version("httr", version="0.6.0", repos="http://cran.us.r-project.org") library(httr) library(bit64) library(base64enc) api_key <- " 181CeaUeVq75Z2UDuggt6NlBP" api_secret <- " QBr3CEwY9oqOtUmMCnIOGVf90DET6zf5Rnz5VyFbTVYXqf3Cpd" access_token <- " 2582011494-alxoqAWilWVz9LyYRgphumXdKZrfSDcj7iQBBID" access_secret <- " igBU0uegV0iTAQczB66ftco6yFIWigpNYOqUeO7EyOlFf" setup_twitter_oauth("api_key", "api_secret","access_token","access_secret") [1] "Using direct authentication" Error in check_twitter_oauth() : OAuth authentication error: This most likely means that you have incorrectly called setup_twitter_oauth()' tweets_data = searchTwitter("sensex",lang="en",n=2000,since = "2017-04-06",until = "2017-04-07") Error in twInterfaceObj$doAPICall(cmd, params, "GET", ...) : OAuth authentication error: This most likely means that you have incorrectly called setup_twitter_oauth()' tweets_data_df <- do.call("rbind",lapply(tweets_data,as.data.frame)) Error in lapply(tweets_data, as.data.frame) : object 'tweets_data' not found Can somebody help?