Searches for matching file names in common spots and returns full path

search_file(pat, dir = get_path("."))

Arguments

pat

Name to match (can include containing directory to narrow search)

dir

Optional, directory from which to start/limit search (only subfolders will be searched)

Value

Path if found. NULL if not.

See also

Other locate: find_file, here