Skip to contents

Path to Permanent Temporary Directory

Usage

temp_dir(..., template = NULL, create = TRUE, dbg = FALSE)

Arguments

...

parts of the path after <TEMP_DIR>/R_kwb.dwd/, passed to file.path] where <TEMP_DIR> is either the value of environment variable TEMP (if set) or TMP (if set) or the result of calling tempdir.

template

optional. If given, it is assumed to be a path to a file. The name of the file without file name extension is then used as folder name below <TEMP_DIR>/R_kwb.dwd/.

create

logical indicating whether or not to create the folder if it does not yet exist. Defaults to TRUE.

dbg

logical indicating whether or not to print debug messages

Value

The function returns the path to the temporary folder specified.