Find file History
Latest commit 87e897f Jan 6, 2017 @khotilov khotilov committed with tqchen [R] fix #1903 (#1929)

XGBoost R Package for Scalable GBM

CRAN Status Badge CRAN Downloads Documentation Status



We are on CRAN now. For stable/pre-compiled(for Windows and OS X) version, please install from CRAN:


You can also install from our weekly updated drat repo:

install.packages("xgboost", repos=c("", getOption("repos")), type="source")

Important Due to the usage of submodule, install_github is no longer support to install the latest version of R package. For up-to-date version, please install from github.

Windows users will need to install RTools first. They also need to download MinGW-W64 using x86_64 architecture during installation.

Run the following command to add MinGW to PATH in Windows if not already added.

PATH %PATH%;C:\Program Files\mingw-w64\x86_64-5.3.0-posix-seh-rt_v4-rev0\mingw64\bin

To compile xgboost at the root of your storage, run the following bash script.

git clone --recursive
cd xgboost
git submodule init
git submodule update
alias make='mingw32-make'
cd dmlc-core
make -j4
cd ../rabit
make lib/librabit_empty.a -j4
cd ..
cp make/
make -j4

Run the following R script to install xgboost package from the root directory.

install.package('devtools') # if not installed

For more detailed installation instructions, please see here.