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