is_empty: Check if a file is empty

View source: R/is_empty.R

is_emptyR Documentation

Check if a file is empty

Description

Check if a summary statistics file subset is empty.

Usage

is_empty(path, error = TRUE, verbose = TRUE)

Arguments

path

File path.

error

Throw an error if the file is empty.

verbose

Print messages.

Value

Boolean.

See Also

Other general: createDT(), fillNA_CS_PP(), get_nrows(), get_os()

Examples

tmp <- tempfile()
data.table::fwrite(echodata::BST1, tmp)
empty <- echodata::is_empty(path = tmp)

RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.