This function gets the name of the current user, which is used to set the
'Creator' and 'Last Modified By' fields when running report_from_sql() or
report_from_data()
get_user(default = getOption("qr.user"))
| default | A default which can be set using |
|---|
A character vector of length 1
If a default is not set this function gets the username from
Sys.getenv("USERNAME") if on windows
Sys.getenv("USER") otherwise
If neither are found the "Unknown" is returned.