
Update the last-updated field in standalone R files
Source:R/22_update_time_in_standalone.R
update_time_in_standalone.RdUpdates the last-updated field in the YAML header of standalone files
to today's date. Supports single file or batch update for all standalone
files in a directory.
Examples
# \donttest{
update_time_in_standalone(tempdir())
#> ✔ Updated last-updated to "2026-07-30" in 1 file.
# }