I’d like to suggest transferring the complete() generic function to the generics package.
Context
The mice package defines its own mice::complete() function, which uses the same verb but serves a different purpose than tidyr::complete(). To prevent confusion and potential name clashes when users load both mice and tidyr, I import tidyr::complete() explicitly, following the solution described in tidyr#390.
However, this small import causes mice to inherit a large set of dependencies from tidyr, even though mice does not use any of its other functionality.
Request
Would you consider moving the complete() generic to the generics package, similar to how functions like predict(), tidy(), and augment() have been handled?
This would allow packages like mice to register methods for complete() cleanly and without needing to import tidyr (or introduce a Suggests/Depends relationship).
Thank you for considering.
I’d like to suggest transferring the
complete()generic function to thegenericspackage.Context
The
micepackage defines its ownmice::complete()function, which uses the same verb but serves a different purpose thantidyr::complete(). To prevent confusion and potential name clashes when users load bothmiceandtidyr, I importtidyr::complete()explicitly, following the solution described in tidyr#390.However, this small import causes
miceto inherit a large set of dependencies fromtidyr, even thoughmicedoes not use any of its other functionality.Request
Would you consider moving the
complete()generic to thegenericspackage, similar to how functions likepredict(),tidy(), andaugment()have been handled?This would allow packages like
miceto register methods forcomplete()cleanly and without needing to importtidyr(or introduce a Suggests/Depends relationship).Thank you for considering.