Install the released version

An up-to-date list of available CatBoost releases and the corresponding binaries for different operating systems is available in the Download section of the releases page on GitHub.

Note

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

This version of CatBoost has GPU support out-of-the-box.

To install the released R package binary with GPU support:

  1. Run the following commands:

    install.packages('devtools')
    devtools::install_url('BINARY_URL'[, INSTALL_opts = c("--no-multiarch", "--no-test-load")])
    
    • BINARY_URL is the URL of the released binary.

    • INSTALL_opts:

      • --no-multiarch is an optional parameter for multiarch support.
      • --no-test-load is an argument which suppresses the testing phase.

    For example, use the following code to install the Windows' version 1.2.2 of the R binary with multiarch support:

    install.packages('devtools')
    devtools::install_url('https://github.com/catboost/catboost/releases/download/v1.2.2/catboost-R-Windows-1.2.2.tgz', INSTALL_opts = c("--no-multiarch", "--no-test-load"))
    

    Warning

    Do not forget to change the package version to the required one. The example above illustrates the installation of the version 1.2.2.

    To install another version, let's say 0.16.5, change the code to the following:

    install.packages('devtools')
    devtools::install_url('https://github.com/catboost/catboost/releases/download/v0.16.5/catboost-R-Windows-0.16.5.tgz', INSTALL_opts = c("--no-multiarch", "--no-test-load"))
    

Troubleshooting

Installation error

If you use script for installation, try to add the repos parameter to the install.packages('devtools') command.
Select any repository from the list.

Example: install.packages("devtools", repos="http://cran.us.r-project.org").