Create a temporary subdirectory in .RequireTempPath()
, or a
temporary file in that temporary subdirectory.
tempdir2(sub = "", tempdir = getOption("Require.tempPath", .RequireTempPath()))
Character string, length 1. Can be a result of
file.path("smth", "smth2")
for nested temporary sub
directories.
Optional character string where the temporary dir should be placed.
Defaults to .RequireTempPath()