Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Arguments

content

A character string to be written to the file.

...

Optional arguments passed to tempfile().

Value

The absolute pathname to the temporary file.

Author(s)

Henrik Bengtsson

See Also

Examples

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

R.utils

Various Programming Utilities

v2.10.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.