Skip to content

Get user system name

5 messages · Sundar Dorai-Raj, Etienne Bellemare Racine, Duncan Murdoch

#
Assuming "USER" is defined on your system then

Sys.getenv("USER")

ought to work.

--sundar

On Mon, Mar 16, 2009 at 3:04 PM, Etienne Bellemare Racine
<etiennebr at gmail.com> wrote:
#
If that's the case, it's best to post the output from "version" to
this thread. Type "version" from the R command prompt and paste the
results here.

On Mon, Mar 16, 2009 at 3:14 PM, Etienne Bellemare Racine
<etiennebr at gmail.com> wrote:
#
On 16/03/2009 6:09 PM, Sundar Dorai-Raj wrote:
In Windows you need to look at

Sys.getenv("USERNAME")

instead.

Duncan Murdoch