dmlc / xgboost

Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow
https://xgboost.readthedocs.io/en/stable/
Apache License 2.0
26.24k stars 8.72k forks source link

Trouble installing xgboost for R in Linux Mint #2524

Closed MaxPowerWasTaken closed 6 years ago

MaxPowerWasTaken commented 7 years ago

I regularly use xgboost in Python, installed it a couple years ago, but am having trouble installing it for r. Any help would be much appreciated.

I tried the following three ways from the installation guide

install.packages('xgboost') returns: "package ‘xgboost’ is not available (for R version 3.2.3)"

git clone --recursive https://github.com/dmlc/xgboost returns: "fatal: destination path 'xgboost' already exists and is not an empty directory."

install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("xgboost", repos="http://dmlc.ml/drat/", type = "source")

returns: "package ‘xgboost’ is not available (for R version 3.2.3)"

Environment info

Operating System: Linux Mint 18 Sarah 64-bit

Package used (python/R/jvm/C++): R

xgboost version used: CRAN and from github/drat

R SessionInfo:


> > sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Linux Mint 18  
> 
> locale:  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C                [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8      [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8     [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                   [9] LC_ADDRESS=C               LC_TELEPHONE=C             [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C         
> 
> attached base packages: [1] parallel  splines   stats     graphics  grDevices utils     datasets  [8] methods   base      
> 
>  other attached packages:  [1] klaR_0.6-12         kernlab_0.9-25      rpart_4.1-10         [4] MASS_7.3-45         randomForest_4.6-12 e1071_1.6-7          [7] ipred_0.9-5         gbm_2.1.3           survival_2.40-1     [10] plyr_1.8.4          C50_0.1.0-24        caretEnsemble_2.0.0 [13] caret_6.0-73        ggplot2_2.2.0       lattice_0.20-33     [16] mlbench_2.1-1        
> 
> loaded via a namespace (and not attached):  [1] Rcpp_0.12.8        compiler_3.2.3     nloptr_1.0.4       class_7.3-14        [5] iterators_1.0.8    tools_3.2.3        drat_0.1.2         partykit_1.1-1      [9] lme4_1.1-12        digest_0.6.10      tibble_1.2         nlme_3.1-124       [13] gtable_0.2.0       mgcv_1.8-11        Matrix_1.2-3       foreach_1.4.3      [17] prodlim_1.5.9      SparseM_1.76       gridExtra_2.2.1    stringr_1.2.0      [21] MatrixModels_0.4-1 combinat_0.0-8     stats4_3.2.3       grid_3.2.3         [25] nnet_7.3-12        data.table_1.10.4  pbapply_1.3-3      lava_1.4.6         [29] minqa_1.2.4        Formula_1.2-2      reshape2_1.4.2     car_2.1-4          [33] magrittr_1.5       scales_0.4.1       codetools_0.2-14   ModelMetrics_1.1.0 [37] assertthat_0.1     pbkrtest_0.4-7     colorspace_1.3-1   quantreg_5.29      [41] stringi_1.1.2      lazyeval_0.2.0     munsell_0.4.3
> --
>  
> > | >
> >
> 
> 
thirdwing commented 7 years ago

xgboost requires R>= 3.3.0

See https://github.com/dmlc/xgboost/blob/master/R-package/DESCRIPTION#L33