I have an R package called ggstatsplot
(https://indrajeetpatil.github.io/ggstatsplot/) which relies on a collection of packages that share a few S3
methods between each other. Therefore, every time the package is loaded, the user is bombarded with messages about this issue, which is not useful for the most users.
> library(ggstatsplot)
Registered S3 method overwritten by 'broom.mixed':
method from
tidy.gamlss broom
Registered S3 methods overwritten by 'car':
method from
influence.merMod lme4
cooks.distance.influence.merMod lme4
dfbeta.influence.merMod lme4
dfbetas.influence.merMod lme4
Is there something I can implement in the package internally to avoid these messages getting printed to the user's console? Maybe something using .onAttach
?