Learn R Programming

academictwitteR (version 0.3.1)

set_bearer: Set bearer token

Description

This function lets the user add their bearer token to the .Renviron file.

Usage

set_bearer()

Arguments

Details

It is in general not safe to 1) hard code your bearer token in your R script or 2) have your bearer token in your command history.

set_bearer opens the .Renviron file for the user and provides instructions on how to add the bearer token, which requires the addition of just one line in the .Renviron file, following the format TWITTER_BEARER=YOURTOKENHERE.

Replace YOURTOKENHERE with your own token.