dir_order: Order a vector of files based on their manipulation time.

View source: R/dir_order.R

dir_orderR Documentation

Order a vector of files based on their manipulation time.

Description

Requires that you run someone's full script and not just update a single figure because then the manipulation time will be off.

Usage

dir_order(..., grep)

Arguments

...

The creation of a file path using ... where you can provide a single value or you can give individual sections of a path. This will be the directory that is searched.

grep

A regular expression you want to search for in the directory.

Value

A vector of file names that are in order from the time that the files were manipulated.

Author(s)

Kelli F. Johnson

Examples

dir_order("tables", grep = "-|_")
dir_order(c("tables", "figures"), grep = "cpuewa")

iantaylor-NOAA/Lingcod_2021 documentation built on Oct. 30, 2024, 6:42 p.m.