check-vector-isDirectory: Does the input contain a directory?

check-vector-isDirectoryR Documentation

Does the input contain a directory?

Description

Does the input contain a directory?

Usage

isDirectory(x)

isADirectory(x, nullOk = FALSE)

allAreDirectories(x)

isDir(x)

isADir(x, nullOk = FALSE)

allAreDirs(x)

Arguments

x

Object.

nullOk

logical(1). If set to TRUE, x may also be NULL.

Value

TRUE on success; FALSE on failure, with cause set.

Functions

  • isDirectory(): Vectorized.

  • isADirectory(): Scalar.

  • allAreDirectories(): Scalar.

  • isDir(): Short alias for isDirectory().

  • isADir(): Short alias for isADirectory().

  • allAreDirs(): Short alias for allAreDirectories().

Note

Updated 2023-09-29.

See Also

  • dir.exists().

  • R.utils::isDirectory().

Examples

## TRUE ====
isDirectory(c("~", "."))
isADirectory("~")

## FALSE ====
isDirectory(1L)

acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.