createTmpDir: Create a random directory with prefix in R temp dir

View source: R/helper_functions.R

createTmpDirR Documentation

Create a random directory with prefix in R temp dir

Description

Especially for testing code it is very helpful to have a temp directory with a defined prefix, so one knows which test produced which directory.

Usage

createTmpDir(prefix = NULL, dir = tempdir())

Arguments

prefix

A string that will preceed the directory name

dir

Directory where the random dir will be created under. Defaults to tempdir()

Value

Name of temporary directory


metaboraid/metaboraid documentation built on Jan. 29, 2023, 1:41 a.m.