tmpfile: Creates a temporary file with content

View source: R/tmpfile.R

tmpfileR Documentation

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

tempfile().

Examples

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

HenrikBengtsson/R.utils documentation built on March 7, 2024, 9:37 a.m.