# NOT RUN {
p1 <- tempfile()
p2 <- tempfile()
p3 <- tempfile()
touch(p1)
touch(p2)
Sys.sleep(3)
touch(p3)
is_files_current(p3, newer_than = 1, units = "days",
within = 4, within_units = "secs")
is_files_current(p1, p2, p3, newer_than = 1, units = "days",
within = 4, within_units = "secs")
is_files_current(p1, p2, p3, newer_than = 1, units = "days",
within = 1, within_units = "secs")
is_files_current(p1, p2, p3, newer_than = 1, units = "secs",
within = 4, within_units = "secs")
# }
Run the code above in your browser using DataLab