Public-Health-Scotland / source-linkage-files

This repo is for the syntax used for the PHS Source Linkage File project
https://public-health-scotland.github.io/source-linkage-files/
Other
4 stars 2 forks source link

add "function started at Sys.time()" for other functions in episode and individual scripts #964

Closed SwiftySalmon closed 4 months ago

SwiftySalmon commented 5 months ago

When running episode or individual files, some functions have a wee note that pops up so you know where it is and what time it started ("Clean individual file function started at 2024-06-03 14:18:22")

Not all the functions have this and it could be useful to see where things are getting stuck or taking too long? It would be adding this to the start of the function: cli::cli_alert_info(" x function started at {Sys.time()}")