powered by
`github_get_token`` obtains the user's github authentication token.
github_get_token()
This function looks for the token in the following places (in order):
Value of GITHUB_PAT environmental variable.
GITHUB_PAT
Value of GITHUB_TOKEN environmental variable.
GITHUB_TOKEN
Contents of ~/.github/token file.
~/.github/token
# NOT RUN { github_get_token() # } # NOT RUN { # }
Run the code above in your browser using DataLab