2

这是我得到的错误。我还在他们的网站上尝试了所有其他安装选项,但没有运气。我有点迷失了我应该如何解决这个问题。任何帮助将不胜感激。

 > install_github("Microsoft/LightGBM", subdir = "R-package")
 Downloading GitHub repo Microsoft/LightGBM@master
 from URL https://api.github.com/repos/Microsoft/LightGBM/zipball/master
 Installing lightgbm
 Installing 1 package: data.table
 Installing package into ‘C:/Users/XXXXXXXXXX/Documents/R/win-library/3.4’
 (as ‘lib’ is unspecified)
 trying URL 
 'https://cran.rstudio.com/bin/windows/contrib/3.4/data.table_1.10.4-3.zip'
 Content type 'application/zip' length 1577027 bytes (1.5 MB)
 downloaded 1.5 MB

 package ‘data.table’ successfully unpacked and MD5 sums checked
 Warning: cannot remove prior installation of package ‘data.table’

 The downloaded binary packages are in

 C:\Users\XXXXXXXXXXXXX\AppData\Local\Temp\Rtmpa409YJ\downloaded_packages
 "C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --
 no-restore --quiet CMD INSTALL "C:/Users/XXXXXX  \
  XXXXX/AppData/Local/Temp/Rtmpa409YJ/devtools15b8405627ba/Microsoft-
LightGBM-04d4811/R-package" --library="C:/Users/XXXXXXXXX  \
  XXXXXXXXX/Documents/R/win-library/3.4" --install-tests 

 ERROR: dependency 'data.table' is not available for package 'lightgbm'
* removing 'C:/Users/XXXXXXXXXX/Documents/R/win-library/3.4/lightgbm'
Installation failed: Command failed (1)
Warning message:
GitHub repo contains submodules, may not function as expected! 


R.Version() 
$platform
[1] "x86_64-w64-mingw32"

$arch
[1] "x86_64"

$os
[1] "mingw32"

$system
[1] "x86_64, mingw32"

$status
[1] ""

$major
[1] "3"

$minor
[1] "4.1"

$year
[1] "2017"

$month
[1] "06"

$day
[1] "30"

$`svn rev`
[1] "72865"

$language
[1] "R"

$version.string
[1] "R version 3.4.1 (2017-06-30)"

$nickname
[1] "Single Candle"

Stackoverlfow 认为这篇文章有很多代码,所以我需要向它添加更多文本,所以我将在这里闲逛,这样我就可以达到字符数限制。如果您正在阅读本文,我深感抱歉,因为我在浪费您的时间以及编写本文的时间,但是系统就是系统,所以我想我必须继续前进。有点像多莉寻找尼莫。继续游泳,继续游泳。

4

1 回答 1

0

你可以通过进入 R studio 并安装 data.table 包来解决这个问题。我有同样的问题,这对我有用

于 2019-02-27T19:53:19.640 回答