[Rd] OS calls

Paul Gilbert pgilbert@bank-banque-canada.ca
Wed, 21 Jun 2000 12:42:05 -0400


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._