path_teams()
finds the path to the most recent investigation teams
schedule.
path_nights_weekends()
finds the path to the most recent nights/weekends
schedule.
path_teams( dir = "V:/Administration/Schedules/", pattern = "(?i).*/[^/~]*Investigations?[ ]*Staff[ ]*Schedule.*xlsx?$" ) path_nights_weekends( dir = "V:/Administration/Schedules/", pattern = "(?i).*/[^/~]*Nights?.*Weekends?[ ]*Staff.*xlsx?$" )
dir | The path to the directory of interest |
---|---|
pattern | The regular expression to use when filtering paths |
An fs_path
vector
These functions returns the most recently created file; if multiple files are create within 1 second of each other, this will return a vector of paths to each of those files.