{
  "_id": "6aa8fc67089bafb098cfa980",
  "Package": "lorax",
  "Title": "Speak for the Trees",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Max\", \"Kuhn\", , \"max@posit.co\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-2402-136X\")),\nperson(\"Posit Software, PBC\", role = c(\"cph\", \"fnd\"),\ncomment = c(ROR = \"03wc8by49\"))\n)",
  "Description": "Extracts decision rules from tree- and rule-based models\nfitted in 'R'. Rules are expressed as logical predicates that\nidentify paths to terminal nodes, making model behavior more\ntransparent and interpretable. Provides conversion methods to\n'partykit' party objects for a wide range of model types. The\n'partykit' infrastructure is described in Hothorn and Zeileis\n(2015) <https://jmlr.org/papers/v16/hothorn15a.html>.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/tidymodels/lorax, https://lorax.tidymodels.org/",
  "BugReports": "https://github.com/tidymodels/lorax/issues",
  "Config/roxygen2/version": "8.0.0",
  "Config/Needs/website": "tidyverse/tidytemplate, ranger, palmerpenguins,\ntidyr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "8.0.0",
  "Repository": "https://tidymodels.r-universe.dev",
  "Date/Publication": "2026-07-16 17:14:52 UTC",
  "RemoteUrl": "https://github.com/tidymodels/lorax",
  "RemoteRef": "HEAD",
  "RemoteSha": "3cb22416447339fc2af8521124bbed5afc046c46",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-15 07:59:14 UTC",
    "User": "root"
  },
  "Author": "Max Kuhn [aut, cre] (ORCID: <https://orcid.org/0000-0003-2402-136X>),\nPosit Software, PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)",
  "Maintainer": "Max Kuhn <max@posit.co>",
  "_user": "tidymodels",
  "_type": "src",
  "_file": "lorax_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/30648bb98b59f5133cfe3d78346ac0d595f786119ad286cca35c337a62c59f5e",
  "_filesize": 625884,
  "_sha256": "30648bb98b59f5133cfe3d78346ac0d595f786119ad286cca35c337a62c59f5e",
  "_expires": "2026-12-24T08:05:58.000Z",
  "_created": "2026-09-15T07:59:14.000Z",
  "_published": "2026-09-15T08:05:59.733Z",
  "_jobs": [
    {
      "job": 104300741041,
      "time": 192,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10387185091"
    },
    {
      "job": 104300740872,
      "time": 184,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10387015311"
    },
    {
      "job": 104300740957,
      "time": 163,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10386584206"
    },
    {
      "job": 104300740985,
      "time": 153,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10386188669"
    },
    {
      "job": 104299904925,
      "time": 185,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10386284282"
    },
    {
      "job": 104300740883,
      "time": 130,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10386219747"
    },
    {
      "job": 104300741012,
      "time": 144,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10386528881"
    },
    {
      "job": 104300741091,
      "time": 148,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10386209839"
    },
    {
      "job": 104300740947,
      "time": 141,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10386483894"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503",
  "_status": "success",
  "_upstream": "https://github.com/tidymodels/lorax",
  "_commit": {
    "id": "3cb22416447339fc2af8521124bbed5afc046c46",
    "author": "Max Kuhn <mxkuhn@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Pre-CRAN (#18)\n\n* pre-cran changes\n\n* small updates\n\n* topepo -> tidymodels\n\n* update GHA\n\n* xgboost: Needs R >= 4.3.0\n\n* small updates\n\n* added skips for cran\n\n* constrain cores for CRAN\n\n* constrain cores for CRAN\n\n* attempts to control cpu usage\n\n* merge stashed changes\n\n* no Rplots.pdf file\n\n* touch to restart GHA\n\n* missing snapshots\n\n* hex logo",
    "time": 1784222092
  },
  "_maintainer": {
    "name": "Max Kuhn",
    "email": "max@posit.co",
    "login": "topepo",
    "orcid": "0000-0003-2402-136X",
    "description": "",
    "uuid": 5731043
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.3.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "partykit",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "aorsf",
      "role": "Suggests"
    },
    {
      "package": "C50",
      "role": "Suggests"
    },
    {
      "package": "Cubist",
      "role": "Suggests"
    },
    {
      "package": "dbarts",
      "role": "Suggests"
    },
    {
      "package": "grf",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lightgbm",
      "role": "Suggests"
    },
    {
      "package": "modeldata",
      "role": "Suggests"
    },
    {
      "package": "palmerpenguins",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "role": "Suggests"
    }
  ],
  "_owner": "tidymodels",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-11",
      "n": 15
    },
    {
      "week": "2026-12",
      "n": 2
    },
    {
      "week": "2026-13",
      "n": 6
    },
    {
      "week": "2026-14",
      "n": 4
    },
    {
      "week": "2026-15",
      "n": 6
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-29",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 8,
  "_contributors": [
    {
      "user": "topepo",
      "count": 77,
      "uuid": 5731043
    }
  ],
  "_userbio": {
    "uuid": 29100987,
    "type": "organization",
    "name": "tidymodels",
    "followers": 571
  },
  "_downloads": {
    "count": 218,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/lorax"
  },
  "_devurl": "https://github.com/tidymodels/lorax",
  "_pkgdown": "https://lorax.tidymodels.org/",
  "_searchresults": 11,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/lorax.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/tidymodels/lorax",
  "_realowner": "tidymodels",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-07-16"
    }
  ],
  "_exports": [
    "active_predictors",
    "as.party",
    "combine_rule_elements",
    "extract_rules",
    "obliq_split_to_expr",
    "rect_split_to_expr",
    "rule_text",
    "var_imp"
  ],
  "_help": [
    {
      "page": "active_predictors",
      "title": "Extract the active features from a tree",
      "topics": [
        "active_predictors",
        "active_predictors.bart",
        "active_predictors.C5.0",
        "active_predictors.cforest",
        "active_predictors.cubist",
        "active_predictors.grf",
        "active_predictors.lgb.Booster",
        "active_predictors.ObliqueForest",
        "active_predictors.party",
        "active_predictors.randomForest",
        "active_predictors.ranger",
        "active_predictors.rpart",
        "active_predictors.xgb.Booster"
      ]
    },
    {
      "page": "as.party.bart",
      "title": "Convert BART model to party object",
      "topics": [
        "as.party.bart"
      ]
    },
    {
      "page": "as.party.C5.0",
      "title": "Convert C5.0 model to party object",
      "topics": [
        "as.party.C5.0"
      ]
    },
    {
      "page": "as.party.grf",
      "title": "Convert grf model to party object",
      "topics": [
        "as.party.grf"
      ]
    },
    {
      "page": "as.party.lgb.Booster",
      "title": "Convert lgb.Booster model to party object",
      "topics": [
        "as.party.lgb.Booster"
      ]
    },
    {
      "page": "as.party.randomForest",
      "title": "Convert randomForest model to party object",
      "topics": [
        "as.party.randomForest"
      ]
    },
    {
      "page": "as.party.ranger",
      "title": "Convert ranger model to party object",
      "topics": [
        "as.party.ranger"
      ]
    },
    {
      "page": "as.party.xgb.Booster",
      "title": "Convert xgb.Booster model to party object",
      "topics": [
        "as.party.xgb.Booster"
      ]
    },
    {
      "page": "combine_rule_elements",
      "title": "Combine multiple R expressions into a single composite expression",
      "topics": [
        "combine_rule_elements"
      ]
    },
    {
      "page": "extract_rules.bart",
      "title": "Extract rules from a BART model",
      "topics": [
        "extract_rules.bart"
      ]
    },
    {
      "page": "extract_rules",
      "title": "Extract an expression that defines a path to a terminal node",
      "topics": [
        "extract_rules",
        "extract_rules.C5.0",
        "extract_rules.cforest",
        "extract_rules.grf",
        "extract_rules.randomForest",
        "extract_rules.ranger"
      ]
    },
    {
      "page": "extract_rules.cubist",
      "title": "Extract rules from a Cubist model",
      "topics": [
        "extract_rules.cubist"
      ]
    },
    {
      "page": "extract_rules.lgb.Booster",
      "title": "Extract rules from an lgb.Booster model",
      "topics": [
        "extract_rules.lgb.Booster"
      ]
    },
    {
      "page": "extract_rules.ObliqueForest",
      "title": "Extract rules from an ObliqueForest model",
      "topics": [
        "extract_rules.ObliqueForest"
      ]
    },
    {
      "page": "extract_rules.party",
      "title": "Extract rules from a party object",
      "topics": [
        "extract_rules.party"
      ]
    },
    {
      "page": "extract_rules.rpart",
      "title": "Extract rules from an rpart model",
      "topics": [
        "extract_rules.rpart"
      ]
    },
    {
      "page": "extract_rules.xgb.Booster",
      "title": "Extract rules from an xgb.Booster model",
      "topics": [
        "extract_rules.xgb.Booster"
      ]
    },
    {
      "page": "obliq_split_to_expr",
      "title": "Convert an oblique split to an R expression",
      "topics": [
        "obliq_split_to_expr"
      ]
    },
    {
      "page": "rect_split_to_expr",
      "title": "Convert a rectangular split to an R expression",
      "topics": [
        "rect_split_to_expr"
      ]
    },
    {
      "page": "rule_text",
      "title": "Convert a rule expression to a readable text format",
      "topics": [
        "rule_text"
      ]
    },
    {
      "page": "lorax_var_imp",
      "title": "Tree Importance Scores",
      "topics": [
        "lorax_var_imp",
        "var_imp.cforest",
        "var_imp.grf",
        "var_imp.lgb.Booster",
        "var_imp.ObliqueForest",
        "var_imp.party",
        "var_imp.randomForest",
        "var_imp.ranger",
        "var_imp.rpart",
        "var_imp.xgb.Booster"
      ]
    }
  ],
  "_pkglogo": "https://github.com/tidymodels/lorax/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/tidymodels/lorax/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "dplyr",
    "Formula",
    "generics",
    "glue",
    "inum",
    "lattice",
    "libcoin",
    "lifecycle",
    "magrittr",
    "Matrix",
    "mvtnorm",
    "partykit",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "rpart",
    "sandwich",
    "strucchange",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr",
    "zoo"
  ],
  "_score": 4.488550716500445,
  "_indexed": true,
  "_nocasepkg": "lorax",
  "_universes": [
    "tidymodels",
    "topepo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-15T08:01:43.000Z",
      "distro": "resolute",
      "commit": "3cb22416447339fc2af8521124bbed5afc046c46",
      "fileid": "https://r2.ropensci.org/2c9a00f85f1dacec2b294b9959e3d77a3e7624524323bae7384d227781c57663",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-15T08:01:38.000Z",
      "distro": "resolute",
      "commit": "3cb22416447339fc2af8521124bbed5afc046c46",
      "fileid": "https://r2.ropensci.org/657a2464356b44d705662986e7cef3d06840d74edc90e1f922918c0b362d6062",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-09-15T08:04:31.000Z",
      "commit": "3cb22416447339fc2af8521124bbed5afc046c46",
      "fileid": "https://r2.ropensci.org/d45e405cb671c75788a96bbd6c26c91da679dbff7ea88c62b69b6c835a06bb60",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-09-15T08:04:11.000Z",
      "commit": "3cb22416447339fc2af8521124bbed5afc046c46",
      "fileid": "https://r2.ropensci.org/ca822ba49d7c05b607c4728007bc72fcaa559d0af2bed3016349ebde6855c76f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-09-15T08:01:48.000Z",
      "commit": "3cb22416447339fc2af8521124bbed5afc046c46",
      "fileid": "https://r2.ropensci.org/fed67179f6ae46f9262ffe19a0e8fbe571caca6ef1077f49b5e70fe3dac5af5c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-15T08:00:37.000Z",
      "commit": "3cb22416447339fc2af8521124bbed5afc046c46",
      "fileid": "https://r2.ropensci.org/00174a9b7367da13eda83a534105f2284f3ba737285871cc2e5028f10e617828",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-15T08:00:36.000Z",
      "commit": "3cb22416447339fc2af8521124bbed5afc046c46",
      "fileid": "https://r2.ropensci.org/6147a65daf3c777a9229356b366438e062245da2194162fa3eddfee254d92467",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-15T08:00:33.000Z",
      "commit": "3cb22416447339fc2af8521124bbed5afc046c46",
      "fileid": "https://r2.ropensci.org/5852d7cf489494ab1680681d1be0d24c04c18601ba1b7a4a848ab1fd62615e2c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tidymodels/actions/runs/34944252503"
    }
  ]
}