Learn R Programming

ribiosUtils (version 1.7.7)

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 = TRUE, mode = "0777")

Value

Directory name (invisible)

Arguments

dir

Directory name

showWarnings

Passed to dir.create

recursive

Passed to dir.create

mode

Passed to dir.create

Author

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples

Run this code

tempdir <- tempdir()
createDir(tempdir)

Run the code above in your browser using DataLab