Skip to contents

Was a file updated in the last hour?

Usage

was_updated(file, alert = TRUE)

Arguments

file

chr file path

alert

alert Whether to give a console alert that the file was updated.

Value

lgl whether the file was updated

Examples

x <- UU::mkpath(tempfile(), mkfile = TRUE)
#> Created file: /tmp/RtmppMzPwa/file16a859ca5643.
was_updated(x)
#>  /tmp/RtmppMzPwa/file16a859ca5643 was updated.
#> [1] TRUE
file.remove(x)
#> [1] TRUE