Populates the GITHUB_PAT environment variable using the git_credential
manager, which git itself uses for storing passwords. The credential manager
returns stored credentials if available, and securely prompt the user for
credentials when needed.
Usage
set_github_pat(force_new = FALSE, validate = interactive(), verbose = validate)Details
Packages that require a GITHUB_PAT can call this function to automatically
set the GITHUB_PAT when needed. Users may call this function in their
.Rprofile script to automatically set GITHUB_PAT for each R
session without hardcoding any tokens on disk in plain-text.
