You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's also include some guidance around how to design classes and generics so as to mitigate the impact of any changes. For example, limiting the number of arguments to the generic and using composition to isolate property changes in helper classes.
Based on past experience, these situations arise rarely, and when they do, the best solution is just to work with downstream dependencies to update them. The most important thing to get right is detecting conflicts and inconsistencies when they occur.
@lawremi I suspect there's a different between BioC and CRAN here — when evolving an interface of a CRAN package, it's really nice to be able to avoid requiring simultaneous package releases. So while most of the time you do end up working with the downstream maintainers to fix the problem, it's nice to not have R CMD check fail while the packages are slightly out of sync.
One last note: when you change a generic() it's nice to be able to still successfully source the whole package so that you can fix methods one-by-one, rather than having to update them all before your package re-loads successfully.
Activity
lawremi commentedon Feb 7, 2022
Let's also include some guidance around how to design classes and generics so as to mitigate the impact of any changes. For example, limiting the number of arguments to the generic and using composition to isolate property changes in helper classes.
Based on past experience, these situations arise rarely, and when they do, the best solution is just to work with downstream dependencies to update them. The most important thing to get right is detecting conflicts and inconsistencies when they occur.
hadley commentedon Feb 7, 2022
@lawremi I suspect there's a different between BioC and CRAN here — when evolving an interface of a CRAN package, it's really nice to be able to avoid requiring simultaneous package releases. So while most of the time you do end up working with the downstream maintainers to fix the problem, it's nice to not have R CMD check fail while the packages are slightly out of sync.
hadley commentedon Feb 10, 2022
One last note: when you change a
generic()it's nice to be able to still successfully source the whole package so that you can fix methods one-by-one, rather than having to update them all before your package re-loads successfully.Evolution vignette and compatibility lab (#731)