Learn R Programming

ribiosUtils (version 1.5-6)

createDir: Create a directory if it does not exist, and then make sure the creation was successful.

Description

The function is particularly useful for scripting.

Usage

createDir(dir, showWarnings = FALSE, recursive = FALSE, mode = "0777")

Arguments

dir

Directory name

showWarnings

Passed to dir.create

recursive

Passed to dir.create

mode

Passed to dir.create

Value

Directory name (invisible)

Examples

Run this code
# NOT RUN {
tempdir <- tempdir()
createDir(tempdir)

# }

Run the code above in your browser using DataLab