check_filename: Check that a filename is really a filename

Description Usage Arguments Details Value

View source: R/utils.R

Description

Lots of sanity checks to avoid mischief by the user: Must be single character string with nchars > 0. File must exist.

Usage

1
check_filename(filename)

Arguments

filename

single filename to check

Details

This is still open to race conditions.

Value

TRUE if all checks pass, otherwise throws an ERROR


coolbutuseless/optout documentation built on Jan. 24, 2022, 12:03 a.m.