Description Usage Arguments Value Author(s) Examples
I often save some file (output, data file, etc) many many times, but I add a time stamp to each version. Sometimes I need to load these files and it is important that I always load the most recent version. This function allows me to not worry about updating my programs with the most recent file names, it will just take a substring-filename and find and load the most recent version.
1 | loadRecent(path, fileString, type)
|
path |
File path to search |
fileString |
A substring of the file name. |
type |
Character vector: either "RDS" or "RDATA", not case sensitive. |
Returns whatever is loaded
Brian Carter
1 | cohort <- loadRecent("data","Merged data",".RDS")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.