retrieveRDS.RdRetrieves an RDS file stored in basepath/fname that has
the closest modification date to goalDate. If no such file exists, an
error will be thrown.
retrieveRDS(fname, basepath = ".", goalDate = Sys.time())
| 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 |
#>#> [1] TRUE#>#>mtcars_retrieved <- retrieveRDS('mtcars', goalDate = lubridate::now()) identical(mtcars, mtcars_retrieved)#> [1] FALSE