View source: R/f - Get latest file.R
f_get_latest_file | R Documentation |
Get latest file with given c.file.string and of type c.file.type.
f_get_latest_file(
c.file.string,
c.file.type,
c.path,
b.exact.match = FALSE,
c.file.string.exclude = NULL,
c.sheet.name = NULL,
c.show.report = "all"
)
c.file.string |
String to search for in the filename. |
c.file.type |
File type. |
c.path |
Path where the files should be searched for. |
b.exact.match |
Should the string match the files exactly? (default: FALSE) |
c.file.string.exclude |
String in files to exclude (default: NULL) |
c.sheet.name |
Sheetname, in case of Excel file. The first sheet will be chosen in case the value is NULL (default: NULL) |
c.show.report |
What feedback should we show? Options: 'none', 'minimal', 'all' (default: 'all') |
-
Full path to latest file in concerned folder.
Pieter Overdevest
c.path.file <- f_get_latest_file(
c.file.string = "allocation",
c.file.type = "xls",
c.path = path.data,
b.exact.match = FALSE,
c.file.string.exclude = NULL,
c.sheet.name = NULL,
c.show.report = "all"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.