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