Learn R Programming

pathological (version 0.0-7)

temp_dir: Create a temp file/dir

Description

Wrappers to tempdir and tempfile that return standardized paths.

Usage

temp_dir(sep = c("/", "\\"))

temp_file(..., sep = c("/", "\\"))

Arguments

sep
String separator between directory levels in the output.
...
Passed to tempfile

Value

  • For temp_file a character vector giving the names of possible (temporary) files. Note that no files are generated by temp_file. For temp_dir, the path of the per-session temporary directory.

See Also

tempdir

Examples

Run this code
temp_dir()
temp_file()

Run the code above in your browser using DataLab