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
You are now printing a big ugly message in your .onAttach function about the conflict between stats::lag and dplyr::lag. That's a real issue, and it's a problem if I was using dplyr, but I'm not, I just have it installed. I'm not even attaching xts, I'm just importing quantmod, and quantmod attaches it. Don't you think that's excessive?
The text was updated successfully, but these errors were encountered:
Yes, I agree it's excessive to print the warning when dplyr's installed but not being used. But I didn't have a better idea how to warn the user that attaching dplyr after attaching xts would be a problem. I really like your suggestion to use setHook() and I'll add that to the next release.
I'm not a huge fan of noisy package startup messages, but dplyr::lag() masking causes enough subtle issues that I thought it was worth being noisy and warning end users. Especially because the dplyr team could fix this but has shown no interest in doing so since they introduced this anti-social behavior.
I'd appreciate any other thoughts you have about how to only raise this warning when it's appropriate.
@dmurdoch I've implemented your suggestion and added it to the main branch. Please let me know if there's anything else we can do to make sure the warning is only shown at appropriate times.
You are now printing a big ugly message in your .onAttach function about the conflict between stats::lag and dplyr::lag. That's a real issue, and it's a problem if I was using dplyr, but I'm not, I just have it installed. I'm not even attaching xts, I'm just importing quantmod, and quantmod attaches it. Don't you think that's excessive?
The text was updated successfully, but these errors were encountered: