retrievePath.Rd
Retrieves the path of a file stored in basepath/fname
that has
the closest modification date to goalDate
. If no such file exists, an
error will be thrown.
retrievePath(fname, basepath = ".", goalDate = lubridate::now())
fname | The name of the directory in |
---|---|
basepath | A string. The path which stores |
goalDate | The 'goal' date for the revision we are trying to retrieve. Whichever file is closest in time to the 'goal' date will be selected |
A string. The full path to the file, or an error if such a file cannot be found.
#>#> [1] "./mtcars/2020_04_09_18_08.rds"