Re: [R] Get user system name

2009-03-17 Thread Paolo Sonego
UNIX only (At least it works under Linux and Mac OS X): (user <- system("users", intern=T)) Paolo __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide

Re: [R] Get user system name

2009-03-16 Thread Duncan Murdoch
On 16/03/2009 6:09 PM, Sundar Dorai-Raj wrote: Assuming "USER" is defined on your system then Sys.getenv("USER") ought to work. In Windows you need to look at Sys.getenv("USERNAME") instead. Duncan Murdoch __ R-help@r-project.org mailing list ht

Re: [R] Get user system name

2009-03-16 Thread Etienne Bellemare Racine
This one is the one working for me. Thanks ! -- Etienne Gábor Csárdi a écrit : > Etienne, > > >> Sys.info()["user"] >> > user > "csardi" > > Best, > Gabor > > On Mon, Mar 16, 2009 at 11:04 PM, Etienne Bellemare Racine > wrote: > >> I would like to get the name of the user form the

Re: [R] Get user system name

2009-03-16 Thread Sundar Dorai-Raj
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 wrote: > It seems like it is not defined. I get an empty string. Is there a > workaround o

Re: [R] Get user system name

2009-03-16 Thread Etienne Bellemare Racine
It seems like it is not defined. I get an empty string. Is there a workaround or another solution ? -- Etienne Sundar Dorai-Raj a écrit : > 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

Re: [R] Get user system name

2009-03-16 Thread Sundar Dorai-Raj
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 wrote: > I would like to get the name of the user form the system. Is it possible ? > Something like >  >system.user() > returning something like

[R] Get user system name

2009-03-16 Thread Etienne Bellemare Racine
I would like to get the name of the user form the system. Is it possible ? Something like >system.user() returning something like [1] "etber12" Thanks, Etienne [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://s