What is a cross-platform way of getting the username of the current user in R? I am currently using
system('whoami', intern=TRUE)
However this assumes that the user has shell access, and that the whoami
program is available. Is there a more native to get this information in R?