Skip to contents

Return the most recent data file in folder

Usage

get_recent_file(path = "default", regex = NULL, ext = ".csv")

Arguments

path

path to data folder

regex

regular expression pattern passed to list.files()

ext

file extension. Default is 'csv', accepts: 'rds', 'txt', 'tsv', or 'dat'

Value

path to the most recent file