I know similar questions have been asked again. However, I\'ve tried everything I found here and on google and nothing seems to work for me.
My code is the following
finally i got the solution, please try this method. this is very easy
library(devtools)
install_github("twitteR", username="geoffjentry")
library(twitteR)
api_key = "aaa"
api_secret = "bbb"
access_token = "ccc"
access_token_secret = "ffffd"
setup_twitter_oauth(api_key,api_secret,access_token,access_token_secret)