check-vector-isTempFile: Does the input contain a temporary file (that exists on...

check-vector-isTempFileR Documentation

Does the input contain a temporary file (that exists on disk)?

Description

Does the input contain a temporary file (that exists on disk)?

Usage

isTempFile(x)

isATempFile(x)

allAreTempFiles(x)

Arguments

x

Object.

Value

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

Functions

  • isTempFile(): Vectorized.

  • isATempFile(): Scalar.

  • allAreTempFiles(): Scalar.

Note

Updated 2023-07-13.

See Also

  • tempfile().

Examples

## The temporary file must exist on disk.

## TRUE ====
x <- tempfile()
file.create(x)
file.exists(x)
isATempFile(x)
unlink(x)

## FALSE ====
x <- tempfile()
file.exists(x)
isATempFile(x)

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