Install from a local copy on Linux and macOS

Note.

It is strongly recommended to install the released version. Try it if other installation methods result in errors.

Training on GPU requires NVIDIA Driver of version 390.xx or higher.

To install the R package from a local copy of the CatBoost repository:
  1. Install the libc header files on macOS and Linux.

    Depending on the used OS:

    • macOS: xcode-select --install
    • Linux: Install the appropriate package (for example, libc6-dev on Ubuntu)
  2. Clone the repository:
    git clone https://github.com/catboost/catboost.git
  3. Open the catboost/catboost/R-package directory from the local copy of the CatBoost repository.
  4. Create a script file with the following code:

    install.packages('devtools')
    devtools::install()
  5. Run the resulting script file.