Learn R Programming

reproducible (version 1.1.1)

tempdir2: Make a temporary sub-directory or file in that subdirectory

Description

Create a temporary subdirectory in .reproducibleTempPath(), or a temporary file in that temporary subdirectory.

Usage

tempdir2(
  sub = "",
  tempdir = getOption("reproducible.tempPath", .reproducibleTempPath())
)

tempfile2(sub = "", ...)

Arguments

sub

Character string, length 1. Can be a result of file.path("smth", "smth2") for nested temporary sub directories.

tempdir

Optional character string where the temporary dir should be placed. Defaults to .reproducibleTempPath()

...

passed to tempfile, e.g., fileext