-
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
Bundle and load renv at startup #157
Conversation
In the |
Clearly this is not working yet:
I can build and check the package locally in the current state. |
I took out the stuff in However, now I am having the problems with actually running any code from the
@kevinushey do you have any ideas on this?
|
Ah, I think this is a small bug in |
I made a change in Can you let me know if you have better luck with 0.16.0-23? |
I should probably avoid doing this to help the embedding scenario, or perhaps provide a helper script that ensures |
I've added some tooling to the development version of
inside the package directory, and
|
I think something is still up with loading the package in this way @kevinushey. 😕 I am getting these errors (the same as when I tried to put things like
I only see these errors on CI, not locally. It reminds me of this kind of problem that we saw in glue and stringr, where one package is being loaded while another namespace is "sort of" loaded. Maybe related? |
Doh; I can reproduce locally if I run the tests if |
Sorry for the false starts! I think this is finally ready to go; I've added some proper tests to
|
Progress! Although now it looks like the failures are related to the repository URLs. This might be related to some internal code that |
Thank you so much for all your help @kevinushey! 🙌
|
Should be good to go! Indeed, there shouldn't be any licensing issues. The only thing I'd add is that if you plan to use internal renv functions, please add a few unit tests in case I change something in a backwards-incompatible way (although I'll do my best not to!) |
Definitely will! The current use in Dockerfiles is pretty well tested via snapshots, etc, and I'll be sure to test additional use. Just to make this explicit here, that means I will find out if a change in renv breaks vetiver functionality, not you, which is backwards compared to the normal reverse dependency checks for R packages. 👍 |
Related to #154, #4, and #127
Once I get this right and merged in, I'll work on extending how we use renv (not only writing Dockerfiles, but also when writing/reading the model to storage).