R Language in Win10 lower lightGBM Successful installation of

Environmental Science

* win10
* R version 3.4.3 (2017-11-30) – “Kite-Eating Tree”
* Platform: x86_64-w64-mingw32/x64 (64-bit)
* Microsoft Visual Studio Community 2017

* Microsoft Visual C++ 2017 ( Guessing needs )
* Visual Studio Tools for CMake ( Guessing needs )
* In use VS open \LightGBM\windows At the time of the project ,VS Prompt to install some components , Not sure which components .
* cmake <https://cmake.org/download/> 64bit
* Rtools 64bit
System environment variable PATH

* C:\RBuildTools\3.4\bin
* C:\Program Files\CMake\bin
* C:\Program Files\R\R-3.4.3\bin
actually CMake and VS I don't know if I can choose one or the other .

install

Method 1
library(devtools) options(devtools.install.args = "--no-multiarch")
install_git("https://github.com/Microsoft/LightGBM", subdir = "R-package")
Method 2
& 'C:\Program Files\R\R-3.4.3\bin\R.exe' CMD INSTALL --build . --no -multiarch
So it's directly installed lightgbm package . In addition, it will also \LightGBM\R-package folder , That is to say, a lightgbm_2.1.0.zip
file , It seems that Rstudio lower install.packages("d:/LightGBM/R-package/lightgbm_2.1.0.zip")
, The system prompts that it cannot be installed , But extract it directly to the folder of the extension package , Then restart Rstudio, Expansion pack lightgbm It can be used , no problem .

Method 3 ( No attempt )
devtools::install_github("Laurae2/lgbdl", force = TRUE) lgb.dl(commit =
"master", compiler = "vs", repo = "https://github.com/Microsoft/LightGBM")
If there are already compiled lib_lightgbm.dll, You can do this :
lgb.dl(commit = "master", libdll = "C:\\LightGBM\\windows\\x64\\DLL\\
lib_lightgbm.dll",# YOUR PRECOMPILED DLL repo =
"https://github.com/Microsoft/LightGBM")
If used GPU:
lgb.dl(commit = "master", compiler = "vs", # Remove this for MinGW + GPU
installation repo ="https://github.com/Microsoft/LightGBM", use_gpu = TRUE)
reference material

* http://www.zhonghaoguang.com/post/lightgbm-install-suceed/
<http://www.zhonghaoguang.com/post/lightgbm-install-suceed/>
* https://github.com/Microsoft/LightGBM/issues/912#issuecomment-329496254
<https://github.com/Microsoft/LightGBM/issues/912#issuecomment-329496254>
* https://github.com/Microsoft/LightGBM/tree/master/R-package
<https://github.com/Microsoft/LightGBM/tree/master/R-package>
*
https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst
<https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst>