file.ready: file.ready

file.readyR Documentation

file.ready

Description

Checks if a file exists and whether it is empty or not.

Usage

file.ready(path, dont_raise = TRUE)

Arguments

path

path to the file

dont_raise

if set to FALSE then an error would be raised if there was no path provided

Details

Returns TRUE if an input file path is not NA, exists, and not an empty file. If the path provided is NA then by default FALSE would be returned, unless dont_raise is set to TRUE and then an error would be raised.

Author(s)

Alon Shaiber


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.