Learn R Programming

BBmisc (version 1.10)

isDirectory: Is one / are several files a directory?

Description

If a file does not exist, FALSE is returned.

Usage

isDirectory(...)

Arguments

...
[character(1)] File names, all strings.

Value

[logical].

Examples

Run this code
print(isDirectory(tempdir()))
print(isDirectory(tempfile()))

Run the code above in your browser using DataLab