Skip to contents

Grep File Pattern

Usage

grep_file(path = ".", regexp)

Arguments

path

Path to look for file.

regexp

A regular expression (e.g. .csv$) passed on to grep() to filter paths.

Value

The path to the file or an empty string if no match is found.