-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nlmixr2::nlmixr2 - Workflow helper for saving/loading runs. #168
Comments
We could use model/data md5 hash. On the other hand, I believe there is also a makefile like approach with https://github.com/nlmixr2/nlmixr2targets In this case the entire analysis could be triggered (or not) depending on if any of its dependencies were changed. It is a bit more to setup though it is likely more powerful. It would also be nice if it somehow produced outputs compatible with |
I heavily use I'd advocate for a solution like The disadvantage is that |
I think you could also use |
A problem with loading these items is the simple amount of memory used. Perhaps offload everything to a saved file would be helpful. All data frames could be accessed with |
As a new user, I'm working out what a nlimxr2 workflow should be. I'd like to programmatically capture all the runs I'm performing in Rmarkdown, providing various outputs and diagnostics. And I'd also like to be able to update and rerun this document without re-executing all the fits. In talking with Matt, I think we both use something like the function below that saves the output to a file, and then if that file exists, just load it in rather than overwrite.
This is also more similar to how NONMEM and Monolix work, where the output of any model does get saved each time the model runs.
If you all thought something like this was helpful, it would be great if it were part of the package rather me using my own custom function. So I just wanted to offer the idea, here. There may very well be better ways to accomplish this task as well. I wanted to make "overwrite = TRUE" a default behavior such that input is not required and it works more like Monolix and NONMEM, but if I make that option to be optional, I think it messed up the "..." input to the nlmixr2 function and I wasn't sure how to fix that.
The text was updated successfully, but these errors were encountered: