[Feature Request]: Refactor strategies to R6 class that inherits from pkgdepends::pkg_installation_proposal
#30
Labels
pkgdepends::pkg_installation_proposal
#30
Feature description
💡 Idea: Take advantage of the R6 features to organize the code and make the API identical to a
pkgdepends::pkg_installation_proposal
As a side effect, it requires one less level of manipulation of a private field (if
pkgplan
R6 class was exported bypkgdepends
then we wouldn't need it at all)This would need a creation of a parent class that inherits from that one and 3 additional ones for strategies
To
execute_ip()
would look like:Parent class
resolve_ignoring_release_remote()
after solving.⊞ Expand to see code
Strategy class
Example for
min_isolated
strategy⊞ Expand to see code
Code of Conduct
Contribution Guidelines
The text was updated successfully, but these errors were encountered: