topepo / C5.0

An R package for fitting Quinlan's C5.0 classification model
https://topepo.github.io/C5.0/
50 stars 20 forks source link

remove dependency from plyr #5

Closed spedygiorgio closed 7 years ago

spedygiorgio commented 8 years ago

When the package is loaded, the following message is raised...

Loading required package: C50

Loading required package: plyr

You have loaded plyr after dplyr - this is likely to cause problems. If you need functions from both plyr and dplyr, please load plyr first, then dplyr:

library(plyr); library(dplyr)

Cause dplyr expands plyr by most is it possible to remove plyr dependency?

topepo commented 8 years ago

It is required for a reason so I can't easily get rid of it. I can import it (which is a good idea anyway) and call it via namespace. Also, you could load plyr manually before dplyr

topepo commented 7 years ago

Here you go:

> sessionInfo()
R Under development (unstable) (2017-03-21 r72380)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.3

Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.4.0
> library(C50)
> sessionInfo()
R Under development (unstable) (2017-03-21 r72380)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.3

Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] C50_0.1.0-25

loaded via a namespace (and not attached):
[1] compiler_3.4.0  Matrix_1.2-8    partykit_1.1-1  survival_2.41-2
[5] splines_3.4.0   grid_3.4.0      Formula_1.2-1   lattice_0.20-34