From Martin Maechler <maechler@stat.math.ethz.ch>  Tue Oct 21 07:48:57 1997
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Tue, 21 Oct 1997 08:48:57 +0200
Subject: R-alpha:  tempfile(.) [in 0.50-a4] -- or  use .C() instead?
In-Reply-To: <97Oct20.130141edt.26506@mailgate.bank-banque-canada.ca> (message
 from Paul Gilbert on Mon, 20 Oct 1997 12:57:56 -0400)
Message-ID: <199710210648.IAA06380@sophie.ethz.ch>

>>>>> "Paul" == Paul Gilbert <pgilbert@bank-banque-canada.ca> writes:

    Paul> Martin Your revisions to my S--R compatability code suggest that
    Paul> tempfile() is in R after 0.49. I don't find that to be the
    Paul> case. It requires code from Friedrich Leisch which still has to
    Paul> be added as of 0.50 alpha3.

However,  it IS there in  0.50 Alpha-4 :

R : Copyright 1997, Robert Gentleman and Ross Ihaka
Version 0.50 Alpha-4 (September 10, 1997)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type "license()" for details.

> tempfile
function (pattern = "file") 
{
        system(paste("for p in", paste(pattern, collapse = " "), 
                "; do echo /tmp/$p$$; done"), intern = TRUE)
}

----------
(and the same version is in current 0.60 pre-alpha).

Yes, I've thought too, that it could be better to use Fritz' C-version
since that one might also work on non-Unix systems.


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: tempfile(.) [in 0.50-a4] -- or use .C() instead?
Martin Maechler