isDir: Checks existing directory

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/file_dir.R

Description

Checks whether given character strings point to valid directories

Usage

1
2
3
4
5

Arguments

...

One or more character strings giving directory names to be tested

Details

isDir tests whether the given string represent a valid, existing directory. assertDir performs a logical test, and stops the program if the given string does not point to a given directory.

checkDir is synonymous to isDir

Value

isDir returns logical vector.

assertDir returns an invisible TRUE if directories exist, otherwise halts and prints error messages.

Author(s)

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

See Also

file.info, checkFile and assertFile

Examples

1
2
3
4
5
dir1 <- tempdir()
dir2 <- tempdir()

isDir(dir1, dir2)
assertDir(dir1, dir2)

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.