Learn R Programming

R.utils (version 2.12.3)

tmpfile: Creates a temporary file with content

Description

Creates a temporary file with content that will auto delete as soon as there is no longer any references to it.

Usage

tmpfile(content=NULL, ...)

Value

The absolute pathname to the temporary file.

Arguments

content

A character string to be written to the file.

...

Optional arguments passed to tempfile().

Author

Henrik Bengtsson

See Also

Examples

Run this code
  md5 <- tools::md5sum(tmpfile("Hello world!"))
  print(md5)

Run the code above in your browser using DataLab