philipdelff / NMsim

Simulate Nonmem models from R
https://philipdelff.github.io/NMsim/
Other
5 stars 2 forks source link

NMsim: Improve reuse.results option #1

Closed philipdelff closed 1 year ago

philipdelff commented 1 year ago

NMsim has an option to "reuse" simulation results if available rather than doing a new simulation. However for now, this feature is too simple and will just read the results if files with expected names are found. This should rather do a digest::digest should be run on all arguments and control stream and compared to a stored value. Only if there is no change in these values, the results should be reused.

philipdelff commented 1 year ago

This has been implemented via the internal needRun() function.