I am working to establish the connection with twitter using R
Need help to resolve this error:
Error in check_twitter_oauth() : OAuth authentication error:
This most likely means that you have incorrectly called setup_twitter_oauth()'
The code is:
library(twitteR)
library(ROAuth)
customer_key <- "XXXX"
customer_secret <- "XXXX"
access_token <- "XXXX"
access_secret <- "XXXX"
download.file(url="http://curl.haxx.se/ca/cacert.pem", destfile="cacert.pem")
setup_twitter_oauth(consumer_key,consumer_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()'
Also I referred to similar answers, but couldnt resolve this error. I have tried the following :
a) used a library(base64enc)
b) Checked the firewall issue, have allowed the R application in Windows defender firewall settings using command prompt - *netsh advfirewall firewall add rule name="app name" dir=in action=allow program="Full path of .exe" enable=yes*
c) Uninstalled R and have installed the latest version.
Kindly let me know how to resolve this error.
Thanks in advance :slight_smile: