This function attempts to retrieve your bearer token from the environmental variable "TWITTER_BEARER".
The easiest way to setup this environmental variable is to use set_bearer()
and insert your bearer token to .Renviron
file following the format: TWITTER_BEARER=YOURTOKENHERE.
Replace YOURTOKENHERE with your own token.
get_bearer()
string represents your bearer token, if it the environmental variable "TWITTER_BEARER" has been preset.
Note: for get_bearer()
to retrieve your bearer token you will need to restart the
R session after storing in .Renviron
.