Skip to contents

tp_tempdir returns a normalized path for a temporary directory where the executables can read and write temporary files.

Usage

tp_tempdir(temp_dir = NULL, sep = NULL, sub = NULL)

Arguments

temp_dir

NULL, or a path to be used; if NULL, R's base::tempdir is used.

sep

Better ignored; non-default values are passed to base::normalizePath.

sub

Extension for defining a sub-directory within the directory defined by base::tempdir.

Value

Normalized path with system-dependent terminal separator.