View source: R/utils_file_io.R
| needs_update | R Documentation |
Check if files need to be updated
needs_update(
x,
path = FALSE,
threshold = lubridate::floor_date(Sys.time(), "day")
)
x |
|
path |
|
threshold |
The threshold time. If files have last modified times less than this time, they will be marked as needing an update. |
(tbl) with columns:
full_path The full path to the file(s)
basename The file(s) basename
last_updated The last updated time
threshold The threshold time for comparison
needs_update logical as to whether the file should be updated
Other file IO:
col_types(),
dep_read(),
dep_write(),
dir_fn(),
dirs,
ext(),
file_fn(),
is_filepath(),
last_updated(),
list.files2(),
load_obj(),
make_names(),
mkpath(),
move_files_to_folder(),
object_fn(),
object_write(),
package_size(),
write_dir_fn(),
write_lines()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.