Skip to contents

tp_tempdir provides a temporary directory where the executables can read and write temporaty files. Its path is returned in normalized format with system-dependent terminal separator.

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.