I'm using the R package twitteR to retrieve twitter data.
the function "registerTwitterOAuth" is deprecated
and
the function "setup_twitter_oauth" is called for its side effect.
What's the problem with them?
setup_twitter_oauth
is the function you want to use. It's true you call it for it's sideeffect - the side effect being the fact that it'll authorize you to make calls to the Twitter API. You have to pass it your keys/secrets/tokens as per its function documentation.
I store these values in options so that when I need to authenticate I simply call
setup_twitter_oauth(getOption('twitter_consumer_key'),
getOption('twitter_consumer_secret'),
getOption('twitter_access_token'),
getOption('twitter_access_secret'))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.