set_bearer | R Documentation |
This function lets the user add their bearer token to the .Renviron
file.
set_bearer()
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.