path_to_file.Rd
Returns an absolute file or folder path. Folder paths can be extracted from a pre-specified environmental variable.
path_to_file(file_name = NULL, env_var = NULL, path = NULL, latest = TRUE)
A character string, a partial match to the file of interest.
A character string, the name for the environment variable.
A character string, a relative or absolute path to a folder.
Logical; if TRUE
returns only
the latest version of a file whose name contains
a date.
A character string.