memoise
memoise copied to clipboard
memoisation with respect to custom output files
Memoise strikes me as an ideal cacher for Make-like build systems (examples: drake, remake). For this use case, it becomes important to track not just return values, but also custom output files, especially dynamic reports. Do you think such a feature would be appropriate for memoise?
knit_my_report <- memoise(knitr::knit, files = "my_report.md")
Possibly, however I think you might be able to do something with the ... arguments to memoise::memoise().