Re: [R] computer name

2011-06-14 Thread Martin Maechler
Erich Neuwirth erich.neuwi...@univie.ac.at on Mon, 13 Jun 2011 11:16:08 +0200 writes: This depends on your OS. on Windows, Sys.getenv('computername') should work. Sys.info()['nodename'] should work on all systems. yes, indeed! BTW: Learn something more by considering the

Re: [R] computer name

2011-06-13 Thread Erich Neuwirth
This depends on your OS. on Windows, Sys.getenv('computername') should work. Sys.info()['nodename'] should work on all systems. On 6/13/2011 7:38 AM, David Scott wrote: On 13/06/11 15:19, pdb wrote: Is there an r function that will be able to identify the computer the code is running on?

[R] computer name

2011-06-12 Thread pdb
Is there an r function that will be able to identify the computer the code is running on? I have some common code that I run on several computers and each has a database with a different server name - although the content is identical. I need to set thisServer depending on which machine the code

Re: [R] computer name

2011-06-12 Thread Thomas Levine
Not exactly R, but how about pcname - system('uname -n',intern=T) Tom On Sun, Jun 12, 2011 at 11:19 PM, pdb ph...@philbrierley.com wrote: Is there an r function that will be able to identify the computer the code is running on? I have some common code that I run on several computers and

Re: [R] computer name

2011-06-12 Thread David Scott
On 13/06/11 15:19, pdb wrote: Is there an r function that will be able to identify the computer the code is running on? I have some common code that I run on several computers and each has a database with a different server name - although the content is identical. I need to set thisServer