check_file_exists: check if a file exists with a certain name in a certain...

Description Usage Arguments Value

View source: R/utils.R

Description

Uses stringr::str_detect, if you want exact, use ^ and $ before and after your string

Usage

1
check_file_exists(file_name, dir = ".", .logic = T)

Arguments

file_name

file name or part of string name (if not unique will just check that at least a single file matches the provided name)

dir

file directory (default is current directory)

.logic

boolean - if should return a boolean (TRUE) or should return a vector a files that match file_name string (FALSE).

Value

see .logic parameter.


benjaminleroy/simulationBands documentation built on Dec. 19, 2021, 8:41 a.m.