Uses the GITHUB_USERNAME global variable or searches on GitHub,
for the user's email address, see
email_address.
Arguments
- token
GitHub token to use. By default it uses the
GITHUB_TOKENenvironment variable, if set. If unset, uses theGITHUB_PATenvironment variable, if set.- fallback
If not
NULLthen this value is returned if the GitHub username cannot be found, instead of triggering an error.
Details
This function caches the username in the current R session, and if the email address of the user is unchanged, it does not perform another GitHub query.
See also
Other user names: email_address,
fullname, username,
whoami