initDir: Initialize directory

Description Usage Arguments Details Value Note Examples

View source: R/initDir.R

Description

Checks and creates a directory recursively automatically.

Usage

1

Arguments

dir

character(1). Directory path.

Details

Useful for setting up functions that require writes to a user-specified directory.

Value

character(1). Directory path.

Note

Updated 2020-01-06.

Examples

1
2
3
4
5
initDir("testdir")
dir.exists("testdir")

## Clean up.
unlink("testdir", recursive = TRUE)

acidgenomics/AcidBase documentation built on Sept. 10, 2021, 1:27 a.m.