This help topic is for R version 0.64.2. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/fixed/html/tempfile.html
tempfile {fixed}R Documentation

Create Unique Names for (Temporary) Files

Usage

tempfile(pattern = "file")

Arguments

pattern

a character vector with the beginnings of the returned file names.

Details

The filenames will be in the directory given by the first found of the environment variables TMP, TEMP and R_HOME (see Rconsole).

Value

A character vector giving names of possible (temporary) files. The names are certain to be unique between subsequent calls. Note that no files are generated by tempfile.

See Also

unlink for deleting files.