poissonconsulting / subfoldr2

An R package to facilitate saving and loading objects, data, plots, numbers and strings
https://poissonconsulting.github.io/subfoldr2/
Other
2 stars 0 forks source link

Record date time of when analysis was run #104

Open sarahLy9 opened 2 months ago

sarahLy9 commented 2 months ago

Would help keep track of when models were last ran and if any changes had been made to the data after that point requiring a rerun of the model.

date/time of model run active subfolder it was ran in Can it also include the last gh commit SHA when it was ran?

This issue was originally discussed in ember but it was decided to move this issue to subfolder2.

sarahLy9 commented 1 month ago

Would this make more sense to put in the usepois package? Perhaps a call to the script that documents a model run in the analysis template on the line after the analyse() function is called?

joethorley commented 1 month ago

It would be good to chat through the use case some more. The only reason I'm asking is that the analysis objects stores the dataset so in principle it should be possible to directly test if the data has changed?

Also its worth looking at targets for some ideas. It may be that what we want is target based approach with the ability to turn on and off as needed.

sarahLy9 commented 1 month ago

I think it is not just about if data has changed but if the model has changed since the last time it was ran. I will take a closer look at the targets package.