lightgbm
Light Gradient Boosting Machine
Description
Tree based algorithms can be improved by introducing boosting frameworks. 'LightGBM' is one such framework, based on Ke, Guolin et al. (2017) <https://papers.nips.cc/paper/6907-lightgbm-a-highly-efficient-gradient-boosting-decision>. This package offers an R interface to work with it. It is designed to be distributed and efficient with the following advantages: 1. Faster training speed and higher efficiency. 2. Lower memory usage. 3. Better accuracy. 4. Parallel learning supported. 5. Capable of handling large-scale data. In recognition of these advantages, 'LightGBM' has been widely-used in many winning solutions of machine learning competitions. Comparison experiments on public datasets suggest that 'LightGBM' can outperform existing boosting frameworks on both efficiency and accuracy, with significantly lower memory consumption. In addition, parallel experiments suggest that in certain circumstances, 'LightGBM' can achieve a linear speed-up in training time by using multiple machines.
Downloads
6.5K
Last 30 days
1430th
20.1K
Last 90 days
101.3K
Last year
Trend: -8.8% (30d vs prior 30d)
309
Last 30 days
1.2K
Last 90 days
4.6K
Last year
Trend: -20.6% (30d vs prior 30d)
12
Last 7 days
20
Last 30 days
1
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
462
Last 30 days
1.7K
Last 90 days
11.6K
Last year
Trend: -45.3% (30d vs prior 30d)
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | WARNING |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | WARNING |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | WARNING |
Check details (3 non-OK)
whether package can be installed
Found the following significant warnings: Warning: src/Makevars.win: Unknown C++ standard '@CXX_STD@' was ignored See 'd:/Rcompile/CRANpkg/local/4.7/lightgbm.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 14.3.0'
whether package can be installed
Found the following significant warnings: Warning: src/Makevars.win: Unknown C++ standard '@CXX_STD@' was ignored See 'd:/Rcompile/CRANpkg/local/4.5/lightgbm.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 14.3.0'
whether package can be installed
Found the following significant warnings: Warning: src/Makevars.win: Unknown C++ standard '@CXX_STD@' was ignored See 'd:/Rcompile/CRANpkg/local/4.6/lightgbm.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 14.3.0'
Check History
WARNING 9 OK · 3 NOTE · 2 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
whether package can be installed
Found the following significant warnings: Warning: src/Makevars.win: Unknown C++ standard '@CXX_STD@' was ignored See 'd:/Rcompile/CRANpkg/local/4.6/lightgbm.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 14.3.0'
whether package can be installed
Found the following significant warnings: Warning: src/Makevars.win: Unknown C++ standard '@CXX_STD@' was ignored See 'd:/Rcompile/CRANpkg/local/4.5/lightgbm.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 14.3.0'
installed package size
installed size is 68.8Mb
sub-directories of 1Mb or more:
libs 68.2Mb
installed package size
installed size is 71.7Mb
sub-directories of 1Mb or more:
libs 71.1Mb
installed package size
installed size is 6.4Mb
sub-directories of 1Mb or more:
libs 5.8Mb
Code & tests
Open call graph →Code intelligence has not been computed for this package yet.
Code
Structure
Lines of code
213,485
Files
540
Compiled share
91.7%
Has compiled src
Yes
Language breakdown
API
Exported functions
28
Internal functions
46
Recent export changes
Testing & CI
Has tests
Yes
Test-to-code ratio
1.25
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
96.4%
\dontrun example ratio
100%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
No
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
50%
Unsafe pattern score
0
Dep constraint coverage
50%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
3.5
System requirements
1
C++ standard
–
License
MIT + file LICENSE
License flags
SPDX valid, OSI approved
History
Versions
17
First release
2020-09-21
Latest release
2025-02-13
Avg cadence
58 days
Cold removal rate
100%
Dep drift
1
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.