Search all parent directories of a given directory and return the path to the first file found with a given name.

find_config(file_name, dir_path = getwd(), regex = FALSE)

Arguments

file_name

The name of the file.

dir_path

The directory to start the search from. Defaults to current working directory.

regex

TRUE/FALSE. Is the file_name option a regular expression?