temp_dir: Create a temporary directory

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Creates a temporary subdirectory of tempdir.

Usage

1
temp_dir(path = tempdir(), nchar = 10L)

Arguments

path

base directory in which temporary directory will be created. Defaults to tempdir.

nchar

integer length of random string used as directory name. Default is 10.

Value

the full directory path of the temporary directory as a string.

Examples

1
2
3
4
tmp <- temp_dir()
tmp
dir.exists(tmp)
unlink(tmp, force = TRUE)

sboysel/boysel documentation built on May 29, 2019, 3:24 p.m.