zachmayer / caretEnsemble

caret models all the way down :turtle:
Other
226 stars 75 forks source link

getBinaryTargetLevel fails on R 3.2.5 and above #209

Closed sparcycram closed 7 years ago

sparcycram commented 7 years ago

The following code gives an error message when moving from R 3.2.4 to 3.2.5 or above. It returns

Error: could not find function "getBinaryTargetLevel"

library("caretEnsemble") getBinaryTargetLevel()

sessionInfo() R version 3.2.5 (2016-04-14) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows Server 2012 R2 x64 (build 9600)

locale: [1] LC_COLLATE=English_United Kingdom.1252 [2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 [4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252

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

other attached packages: [1] caretEnsemble_2.0.0

loaded via a namespace (and not attached): [1] Rcpp_0.12.5 magrittr_1.5 splines_3.2.5 MASS_7.3-45
[5] munsell_0.4.3 colorspace_1.2-6 lattice_0.20-33 foreach_1.4.3
[9] pbapply_1.2-1 minqa_1.2.4 stringr_1.0.0 car_2.1-2
[13] plyr_1.8.4 tools_3.2.5 nnet_7.3-12 pbkrtest_0.4-6
[17] parallel_3.2.5 caret_6.0-70 grid_3.2.5 data.table_1.9.6
[21] gtable_0.2.0 nlme_3.1-128 mgcv_1.8-12 quantreg_5.26
[25] MatrixModels_0.4-1 iterators_1.0.8 digest_0.6.9 lme4_1.1-12
[29] Matrix_1.2-6 gridExtra_2.2.1 nloptr_1.0.4 reshape2_1.4.1
[33] ggplot2_2.1.0 codetools_0.2-14 stringi_1.1.1 scales_0.4.0
[37] stats4_3.2.5 SparseM_1.7 chron_2.3-47

zachmayer commented 7 years ago

That function was added to the package after the last CRAN release: https://github.com/zachmayer/caretEnsemble/commit/56dc094eab405ab13cae7cf38111c73fd9c5e20f#diff-7347fe5a0f184f79ef064e92e3beb297

Try this:

devtools::install_github('zachmayer/caretEnsemble')
caretEnsemble:::getBinaryTargetLevel

I need to do another CRAN release soon

sparcycram commented 7 years ago

Thanks

Ill try tomorrow don't have permission to install to directory😁

Sent from my iPad

On 11 Jul 2016, at 19:12, Zach Mayer notifications@github.com wrote:

That function was added to the package after the last CRAN release: 56dc094#diff-7347fe5a0f184f79ef064e92e3beb297

Try this:

devtools::install_github('zachmayer/caretEnsemble') caretEnsemble:::getBinaryTargetLevel I need to do another CRAN release soon

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.