From pgilbert@bank-banque-canada.ca  Wed Jun 21 17:42:05 2000
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Wed, 21 Jun 2000 12:42:05 -0400
Subject: [Rd] OS calls
References: <Pine.GSO.4.05.10006211606030.20536-100000@auk.stats>
Message-ID: <3950F05D.A40D22FD@bank-banque-canada.ca>

Brian

>> local.host.netname <- function() {system.call("uname -n")}
>> whoami <- function(){system.call("whoami")} # return user id (for mail)

>Those are not even meaningful on vanilla (non-networked) Windows systems. I
>am not really sure why one would want them in general R code.

I thought whoami was meanful on Windows NT even without a network, but in any
case it is true that I want it for a network environment. You could put in
somewhat meaningful defaults like "localhost" and "root", but I think most
people are on a network these days.

Thanks for pointing out some of the other things that are already working.

Paul

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] OS calls
Paul Gilbert