{
  "_id": "6a11c3d8acfb0bcc41cff1d8",
  "Package": "xgb2sql",
  "Type": "Package",
  "Title": "Convert Trained 'XGBoost' Model to SQL Query",
  "Version": "0.1.3",
  "Description": "This tool enables in-database scoring of 'XGBoost' models\nbuilt in R, by translating trained model objects into SQL\nquery. 'XGBoost' <https://github.com/dmlc/xgboost> provides\nparallel tree boosting (also known as gradient boosting\nmachine, or GBM) algorithms in a highly efficient, flexible and\nportable way. GBM algorithm is introduced by Friedman (2001)\n<doi:10.1214/aos/1013203451>, and more details on 'XGBoost' can\nbe found in Chen & Guestrin (2016)\n<doi:10.1145/2939672.2939785>.",
  "Authors@R": "c(\nperson(\"Chengjun\", \"Hou\", role = c(\"aut\", \"cre\"), email = \"chengjun.hou@gmail.com\"),\nperson(\"Abhishek\", \"Bishoyi\", role = c(\"aut\"), email = \"abhishek.bishoyi@gmail.com\")\n)",
  "Author": "Chengjun Hou [aut, cre], Abhishek Bishoyi [aut]",
  "Maintainer": "Chengjun Hou <chengjun.hou@gmail.com>",
  "URL": "https://github.com/chengjunhou/xgb2sql",
  "BugReports": "https://github.com/chengjunhou/xgb2sql/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "6.1.1",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "make",
  "Repository": "https://chengjunhou.r-universe.dev",
  "Date/Publication": "2025-12-12 21:58:13 UTC",
  "RemoteUrl": "https://github.com/chengjunhou/xgb2sql",
  "RemoteRef": "HEAD",
  "RemoteSha": "db2503b0254a0daff54f98eb36a358240febfa97",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-23 15:09:52 UTC",
    "User": "root"
  },
  "MD5sum": "5f6486a6e0d0511bb82c45e6d5eaa4d5",
  "_user": "chengjunhou",
  "_type": "src",
  "_file": "xgb2sql_0.1.3.tar.gz",
  "_fileid": "4c3ad575b9096da792f9391a581c3ecabe50bfca4b9aa5afd47fd1e9c3daaa8a",
  "_filesize": 130133,
  "_sha256": "4c3ad575b9096da792f9391a581c3ecabe50bfca4b9aa5afd47fd1e9c3daaa8a",
  "_created": "2026-05-23T15:09:52.000Z",
  "_published": "2026-05-23T15:12:24.558Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77530150316,
      "time": 123,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7177756016"
    },
    {
      "job": 77530150323,
      "time": 121,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7177755846"
    },
    {
      "job": 77530150313,
      "time": 72,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7177751495"
    },
    {
      "job": 77530150317,
      "time": 77,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7177751966"
    },
    {
      "job": 77530002652,
      "time": 165,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7177744989"
    },
    {
      "job": 77530150329,
      "time": 101,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7177754179"
    },
    {
      "job": 77530150330,
      "time": 74,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7177751712"
    },
    {
      "job": 77530150332,
      "time": 77,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7177752087"
    },
    {
      "job": 77530150371,
      "time": 74,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7177751754"
    }
  ],
  "_buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/chengjunhou/xgb2sql",
  "_commit": {
    "id": "db2503b0254a0daff54f98eb36a358240febfa97",
    "author": "Chengjun Hou <chengjun.hou@gmail.com>",
    "committer": "Chengjun Hou <chengjun.hou@gmail.com>",
    "message": "Function booster2sql now allows print to console\n",
    "time": 1765576693
  },
  "_maintainer": {
    "name": "Chengjun Hou",
    "email": "chengjun.hou@gmail.com",
    "login": "chengjunhou",
    "description": "",
    "uuid": 11251354
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.0",
      "role": "Depends"
    },
    {
      "package": "xgboost",
      "version": ">= 3.1.2.1",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.12.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "chengjunhou",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-50",
      "n": 6
    }
  ],
  "_tags": [],
  "_stars": 24,
  "_contributors": [
    {
      "user": "chengjunhou",
      "count": 31,
      "uuid": 11251354
    }
  ],
  "_userbio": {
    "uuid": 11251354,
    "type": "user",
    "name": "Chengjun Hou"
  },
  "_downloads": {
    "count": 238,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/xgb2sql"
  },
  "_devurl": "https://github.com/chengjunhou/xgb2sql",
  "_searchresults": 10,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/xgb2sql.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/chengjunhou/xgb2sql",
  "_realowner": "chengjunhou",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.2",
      "date": "2019-03-13"
    },
    {
      "version": "0.1.3",
      "date": "2025-12-12"
    }
  ],
  "_exports": [
    "booster2sql",
    "onehot2sql"
  ],
  "_help": [
    {
      "page": "booster2sql",
      "title": "Transform XGBoost model object to SQL query.",
      "topics": [
        "booster2sql"
      ]
    },
    {
      "page": "onehot2sql",
      "title": "Prepare training data in R so that it is ready for XGBoost model fitting. Meta information is stored so the exact transformation can be applied to any new data. It also outputs SQL query performing the exact one-hot encoding for in-database data preparation.",
      "topics": [
        "onehot2sql"
      ]
    }
  ],
  "_readme": "https://github.com/chengjunhou/xgb2sql/raw/HEAD/README.md",
  "_rundeps": [
    "data.table",
    "jsonlite",
    "lattice",
    "Matrix",
    "xgboost"
  ],
  "_vignettes": [
    {
      "source": "xgb2sql.Rmd",
      "filename": "xgb2sql.html",
      "title": "Deploy XGBoost Model as SQL Query",
      "author": "Chengjun Hou, Abhishek Bishoyi",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Prepare Data in Both R and Database",
        "Transform XGBoost Model into SQL Query"
      ],
      "created": "2019-03-06 17:32:17",
      "modified": "2025-12-12 21:56:47",
      "commits": 4
    }
  ],
  "_score": 5.079181246047625,
  "_indexed": true,
  "_nocasepkg": "xgb2sql",
  "_universes": [
    "chengjunhou"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-05-23T15:11:53.000Z",
      "distro": "noble",
      "commit": "db2503b0254a0daff54f98eb36a358240febfa97",
      "fileid": "30e4015aa087ba5fbec9e18e42adf7bddebf7dbc810183b3211985508ff5e0ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-05-23T15:11:50.000Z",
      "distro": "noble",
      "commit": "db2503b0254a0daff54f98eb36a358240febfa97",
      "fileid": "6b923c3d3d178a8162e111b61c2916e4f492441da3139d9cf84cfec016467826",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-05-23T15:11:07.000Z",
      "commit": "db2503b0254a0daff54f98eb36a358240febfa97",
      "fileid": "89bdc4f43c2e6d6ed844d9bb3e536955c1bf929c633f8d0fddbd599886192e5b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-05-23T15:11:09.000Z",
      "commit": "db2503b0254a0daff54f98eb36a358240febfa97",
      "fileid": "b3f4083b3fbbaee1d1860077f2f92ba84fcdd140191482378a203543b58cc728",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.3",
      "date": "2026-05-23T15:11:46.000Z",
      "commit": "db2503b0254a0daff54f98eb36a358240febfa97",
      "fileid": "4f3c3311fca694b26409c15145787c523c2a185dc6cf701794f0ba2cf3abfa94",
      "status": "success",
      "buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-05-23T15:11:01.000Z",
      "commit": "db2503b0254a0daff54f98eb36a358240febfa97",
      "fileid": "085d272461888645a45b9f46455e76711047162c3b63af4150cc4e9457fc95a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-05-23T15:11:03.000Z",
      "commit": "db2503b0254a0daff54f98eb36a358240febfa97",
      "fileid": "2736192a7c67b98dede69c717370101f6697f29edb3185836c38b18de04fd051",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-05-23T15:11:00.000Z",
      "commit": "db2503b0254a0daff54f98eb36a358240febfa97",
      "fileid": "6412c62224d35113a8e32b56216cc4dffa56adafb93ee19c291982077cb9fde0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chengjunhou/actions/runs/26336112162"
    }
  ]
}