path_by_pattern: Get Path(s) to Recent Files Matching a Pattern

View source: R/path_by_pattern.R

path_by_patternR Documentation

Get Path(s) to Recent Files Matching a Pattern

Description

path_by_pattern() finds the most recent file in a given directory that matches a regular expression.

Usage

path_by_pattern(dir, pattern, by = c("modified", "created"))

Arguments

dir

The path to the directory of interest

pattern

The regular expression to use when filtering paths

by

Should recency be determined by modification or creation date?

Value

An fs_path vector


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.