-
Notifications
You must be signed in to change notification settings - Fork 28
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
Challenges when sharing models due to package versions #127
Comments
This is related to #4. We already have the infrastructure for creating the needed renv lockfile, which we use when creating Dockerfiles. What we still need to do is store a hash of the renv lockfile when creating the |
Understood, that makes sense. In the few times where package versions have been an issue, we have been able to resolve by installing the latest of all required packages using: install.packages(v$metadata$required_pkgs) |
Just a high-level thought, it seems like there may be three levels of requirements that could be stashed with the model:
(I have no idea which is most useful, how these things should be threaded together 😬) |
We've got new support for renv now implemented via #154! If you would like to try it out, you can install with Let me know if you run into further issues or questions with this. |
I am currently sharing development models using the example workflow:
However, we have found that this doesn't always work due to package versions being different from computer to computer. Occasionally, a user will call
predict
on new data and an error is returned as a result of package version differences. We have come to this conclusion because some computers can run the exact same code without error.Is there a suggested workflow or any guidance on how to share development models? We are thinking of making a function like
with_model_env
that would leverage therenv.lock
to run the model with the same set of packages temporarily but wanted to see if there is a better approach.The text was updated successfully, but these errors were encountered: