无法在 R 中安装 catboost

Unable to install catboost in R

我在 R 中下载 catboost 时遇到问题。 请帮助解决这个问题,

> install.packages('catboost')
Installing package into ‘C:/Users/Rishabh Ojha/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘catboost’ is not available (for R version 3.5.2)

我的版本如下:

> version

platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          5.2                         
year           2018                        
month          12                          
day            20                          
svn rev        75870                       
language       R                           
version.string R version 3.5.2 (2018-12-20)
nickname       Eggshell Igloo

这个错误是不言自明的。 catboost 不是 可从 CRAN 获得(但请参阅 here 进行讨论)。

如果您遵循 catboost GitHub project site. Specifically, the installation instructions for installing catboost on a Windows machine can be found on Install from a local copy on Windows.

中提供的安装指南,您 可以 但是安装 catboost

来自后者link:

  • It is strongly recommended to install the released version. Try it if other installation methods result in errors.
  • Windows installation currently requires Visual C++ 2017 Build Tools.
  • Training on GPU requires NVIDIA Driver of version 390.xx or higher.

可能还值得看看项目的 GitHub 问题,例如Building and installing problem in R。祝你好运。