System$getUsername

0th

Percentile

Retrieves the name of the user running R

Retrieves the name of the user running R.

Keywords
methods, internal
Usage
## Static method (use this):
## System$getUsername(...)

## Don't use the below: ## S3 method for class 'System': getUsername(static, ...)

Details

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.

Value

See Also

*getHostname().

Aliases
  • System$getUsername
  • getUsername.System
  • System.getUsername
  • getUsername,System-method
Documentation reproduced from package R.utils, version 1.28.4, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.