tempdir2: Make a temporary (sub-)directory

View source: R/helpers.R

tempdir2R Documentation

Make a temporary (sub-)directory

Description

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

Usage

tempdir2(
  sub = "",
  tempdir = getOption("Require.tempPath", .RequireTempPath()),
  create = TRUE
)

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 .RequireTempPath()

create

Logical. Should the directory be created. Default TRUE

See Also

tempfile2()


Require documentation built on May 31, 2023, 7:06 p.m.