Last data update: 2014.03.03
|
R: Find the current user's GitHub username
gh_username | R Documentation |
Find the current user's GitHub username
Description
Searches on GitHub, for the user's email address, see
email_address .
Usage
gh_username(token = Sys.getenv("GITHUB_TOKEN"), fallback = NULL)
Arguments
token |
GitHub token to use. By default it uses
the GITHUB_TOKEN environment variable, if set.
|
fallback |
If not NULL then this value is returned
if the GitHub username cannot be found, instead of triggering an
error.
|
Value
GitHub username, or an error is thrown if it cannot be found.
See Also
Other user.names: email_address ;
fullname ; username ;
whoami
Examples
## Not run:
gh_username()
## End(Not run)
Results
|