Learn R Programming

academictwitteR (version 0.3.1)

get_bearer: Manage bearer token

Description

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.

Usage

get_bearer()

Arguments

Value

string represents your bearer token, if it the environmental variable "TWITTER_BEARER" has been preset.

Details

Note: for get_bearer() to retrieve your bearer token you will need to restart the R session after storing in .Renviron.