Skip to content

xgb2sql

0.1.3Package record

Convert Trained 'XGBoost' Model to SQL Query

0packages depend
3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.1.3
  • Fix issue for onehot2sql() processing data.frame with only one categorical feature.
  • Stop onehot2sql() and add stop message when there is no categorical feature in the input data.
  • Fix example, vignette, and README following breaking changes on package xgboost.
  • When missing input_table_name for onehot2sql(), the query will be printed to console.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.7 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.3
READMEYes · 409 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.1.3Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
2
Examples that run
100%2 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

3K
CRAN downloads in the past year
Rank #14,523 · ~8/day · ~250/mo
Daily download trend is not available in this view yet.
35530 days
81290 days
3K1 year
Compare downloads with other packages →
Also on97 r2u5 autocran

Repository

23Stars
3Forks
1Open issues
0Open PRs
1Releases
41Commits
3Commit identities
41 commits · Last activity 2025-12-12 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
4
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2026-07-14 · 242026-08-25 · 23
PracticesBeta

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

Checks run against github.com/chengjunhou/xgb2sql on 2026-10-11.

Continuous integration (1)
Travis CI (config file)
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing xgb2sql adds 3 packages (3 with compiled code, 8.2 MB of source tarballs). Heaviest: data.table 5.7 MB, xgboost 1.5 MB, jsonlite 1.0 MB.

Depends (1)
R >= 3.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.1.2 (2019)
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.3Latest
    record
    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
    record
    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
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 package has no citation file, so citation() returns this entry built from DESCRIPTION.

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-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, 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