Tries the LOGNAME, USER, LNAME, USERNAME
environment variables first. Then it tries the id command on Unix-like
platforms and whoami on Windows.
username(fallback = NULL)
| fallback | If not |
|---|
The user name of the current user.
Other user names: email_address,
fullname, gh_username,
whoami
if (FALSE) { username() }