.BG
.FN tempfile
.TL
Create Unique Name for File
.CS
tempfile(pattern="file")
.AG pattern
a character string that forms the start of a filename.  The name is
completed by some numbers.
.RT
a character string giving the name of a file that may be
used as a temporary file.
The names are essentially certain to be unique from one call to the next.
.EX
# an intermediate file for editing
my.ed <- function(x,file = tempfile("ed")) {
	if(missing(file)) on.exit(unlink(file))
	dput(x,file=file)
	unix(paste("ed",file), output=F)
	parse(file=file)[[1]]
}		
.WR
