Searches on GitHub, for the user's email address, see email_address.
email_address
gh_username(token = Sys.getenv("GITHUB_TOKEN"), fallback = NULL)
GitHub token to use. By default it uses the GITHUB_TOKEN environment variable, if set.
GITHUB_TOKEN
If not NULL then this value is returned if the GitHub username cannot be found, instead of triggering an error.
NULL
GitHub username, or an error is thrown if it cannot be found.
Other user.names: email_address; fullname; username; whoami
fullname
username
whoami
# NOT RUN { gh_username() # }
Run the code above in your browser using DataLab