System$getUsername | R Documentation |
Retrieves the name of the user running R.
## Static method (use this):
## System$getUsername(...)
## Don't use the below:
## S3 method for class 'System'
getUsername(static, ...)
First, this function checks the system environment variables USER
,
and USERNAME
.
Second, it checks Sys.info()["user"]
for user name details.
Finally, it tries to query the system command whoami
.
Returns a character
string.
*getHostname()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.