Function rcpputils::fs::temp_directory_path

Function Documentation

path rcpputils::fs::temp_directory_path()

Get a path to a location in the temporary directory, if it’s available.

This does not create any directories. On Windows, this uses “GetTempPathA” On non-Windows, this prefers the environment variable TMPDIR, falling back to /tmp

Returns:

A path to a directory for storing temporary files and directories.