Skip to content

xgb2sql

0.1.3

Convert Trained 'XGBoost' Model to SQL Query

0packages depend
2.8Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Chengjun HouFirst published 2019-03-132 releasesCRAN page ↗GitHub ↗

This tool enables in-database scoring of 'XGBoost' models built in R, by translating trained model objects into SQL query. 'XGBoost' https://github.com/dmlc/xgboost provides parallel tree boosting (also known as gradient boosting machine, or GBM) algorithms in a highly efficient, flexible and portable way. GBM algorithm is introduced by Friedman (2001) doi:10.1214/aos/1013203451, and more details on 'XGBoost' can be found in Chen & Guestrin (2016) doi:10.1145/2939672.2939785.

Install

Health

CRAN checks
13OK
Slowest check: 1.7 min · r-oldrel-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 409 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.8K
CRAN downloads in the past year
Rank #17,270 · ~8/day · ~233/mo
Daily download trend is not available in this view yet.
14430 days
62490 days
2.8K1 year
Compare downloads with other packages →
Also on121 r2u9 autocran

Repository

Repository
24Stars
3Forks
1Open issues
0Open PRs
1Releases
41Commits
3Contributors
41 commits · Last activity 2025-12-12

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/chengjunhou/xgb2sql on 2026-08-09.

Continuous integration (1)
Travis CI
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.3Latest
    2025-12-13 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.2
    2019-03-13
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-03-13
Total releases
2 / 7 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.1.0
Download size
25 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("xgb2sql")
Hou, C., & Bishoyi, A. (2025). xgb2sql: Convert Trained 'XGBoost' Model to SQL Query (Version 0.1.3) [Computer software]. https://doi.org/10.32614/CRAN.package.xgb2sql

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for xgb2sql version 0.1.3 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy