set_bearer {academictwitteR}R Documentation

Set bearer token

Description

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

Usage

set_bearer()

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.


[Package academictwitteR version 0.3.1 Index]