-
Notifications
You must be signed in to change notification settings - Fork 347
Description
This may all be working as intended. I have been using the pattern
library(reticulate)
py_require([pkg]) # often not pinning the version
p = import([pkg])
In ~/.cache/R/reticulate/uv/cache/archive-v0 a new uniquely named folder is
created whenever the py_require spec is not satisfied. Speculation: if any
upstream dependency of the required python package has been updated, a
new folder in archive-v0 will be produced to store the updated dependency. (I believe I've
seen doc on a retention policy for these cache folders.) This process would
occur even if the version of the required package was pinned, if its dependencies
were not explicitly identified and pinned.
Through a relatively brief period of development I have seen the number of
folders under cache/archive-v0 exceed 100. Should there be some guidance on
pruning this area? Maybe an option to py_config that if set would add some information
on this to the report.
I am aware of the best practices doc
that suggests avoiding restrictive version constraints. If the speculation above is correct, the
implication for monitoring/pruning the cache might be worthy of documentation.