Allow easier installation for R package via devtools#177
Allow easier installation for R package via devtools#177guolinke merged 2 commits intolightgbm-org:masterfrom Laurae2:patch-1
Conversation
|
Hi @Laurae2, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
|
@Laurae2 How do you install R-package in windows ? |
|
I was using the following to install LightGBM in R: devtools::install_github("Microsoft/LightGBM", ref = "1b7643b", subdir = "R-package")Output: > devtools::install_github("Microsoft/LightGBM", ref = "1b7643b", subdir = "R-package")
Downloading GitHub repo Microsoft/LightGBM@1b7643b
from URL https://api.github.com/repos/Microsoft/LightGBM/zipball/1b7643b
Installing lightgbm
"C:/PROGRA~1/MIE74D~1/MRO-33~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"C:/Users/Laurae/AppData/Local/Temp/RtmpuGA4p0/devtools2176cb79646b/Microsoft-LightGBM-1b7643b/R-package" --library="C:/Program \
Files/Microsoft/MRO-3.3.1/library" --install-tests
* installing *source* package 'lightgbm' ...
** libs
c:/Rtools/mingw_64/bin/g++ -m64 -std=c++0x -I"C:/PROGRA~1/MIE74D~1/MRO-33~1.1/include" -DNDEBUG -I../..//include -DUSE_SOCKET -I"C:/swarm/workspace/External-R-3.3.1/vendor/extsoft/include" -fopenmp -pthread -std=c++11 -O2 -Wall -mtune=core2 -c lightgbm-all.cpp -o lightgbm-all.o
c:/Rtools/mingw_64/bin/g++ -m64 -std=c++0x -I"C:/PROGRA~1/MIE74D~1/MRO-33~1.1/include" -DNDEBUG -I../..//include -DUSE_SOCKET -I"C:/swarm/workspace/External-R-3.3.1/vendor/extsoft/include" -fopenmp -pthread -std=c++11 -O2 -Wall -mtune=core2 -c lightgbm_R.cpp -o lightgbm_R.o
c:/Rtools/mingw_64/bin/g++ -m64 -shared -s -static-libgcc -o lightgbm.dll tmp.def ./lightgbm-all.o ./lightgbm_R.o -fopenmp -pthread -lws2_32 -liphlpapi -LC:/swarm/workspace/External-R-3.3.1/vendor/extsoft/lib/x64 -LC:/swarm/workspace/External-R-3.3.1/vendor/extsoft/lib -LC:/PROGRA~1/MIE74D~1/MRO-33~1.1/bin/x64 -lR
installing to C:/Program Files/Microsoft/MRO-3.3.1/library/lightgbm/libs/x64
** R
** data
** demo
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
Warning in readLines(file) :
incomplete final line found on './demo/00Index'
** testing if installed package can be loaded
* DONE (lightgbm)This is mysterious, it doesn't error anymore as I cannot reproduce anymore the issue I had (I rebooted my computer between yesterday and today, could be the "fix"). I updated accordingly the PR to provide an easier way to install this package using devtools (and change the PR name). |
|
I see. Thanks for the document ! |
Provide better documentation for installing the R package:
Old PR: