ggbiplot icon indicating copy to clipboard operation
ggbiplot copied to clipboard

plyr dependency masks dplyr functions

Open barnabywalker opened this issue 7 years ago • 2 comments

The dependency on plyr means that ggbiplot masks functions from dplyr. This isn't too much of a problem if loading the package using library(ggbiplot), as I can just reorder my imports, but ggbiplot also loads all of plyr if you use the ggbiplot::ggbiplot() syntax.

So currently there is no way of preventing ggbiplot from masking dplyr functions without ensuring that you explicitly import ggbiplot first.

Is there some way of changing how ggbiplot uses the functions from plyr to prevent it being fully loaded when you use the ggbiplot::ggbiplot() syntax?

barnabywalker avatar Jan 14 '19 15:01 barnabywalker

I suggest you use the fork by @miraKlein. Her pull request fixes this.

As this vqv/ggbiplot repository is no longer maintained, the fix hasn't been pulled.

Install @miraKlein's version with:

devtools::install_github("miraKlein/ggbiplot")

trickytank avatar Jul 12 '19 07:07 trickytank

Thanks, that works perfectly!

barnabywalker avatar Jul 12 '19 09:07 barnabywalker