{
  "_id": "6a5481e1ff0138dec5d646ce",
  "Package": "counterfactuals",
  "Type": "Package",
  "Title": "Counterfactual Explanations",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Susanne\", \"Dandl\", email = \"dandls.datascience@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-4324-4163\")),\nperson(\"Andreas\", \"Hofheinz\", email = \"andreas.hofheinz@outlook.com\", role = c(\"aut\")),\nperson(\"Martin\", \"Binder\", email = \"developer.mb706@mb706.com\", role = c(\"ctb\")),\nperson(\"Giuseppe\",\"Casalicchio\", email = \"giuseppe.casalicchio@stat.uni-muenchen.de\", role = c(\"ctb\"))\n)",
  "Maintainer": "Susanne Dandl <dandls.datascience@gmail.com>",
  "Description": "Modular and unified R6-based interface for counterfactual\nexplanation methods. The following methods are currently\nimplemented: Burghmans et al. (2022)\n<doi:10.48550/arXiv.2104.07411>, Dandl et al. (2020)\n<doi:10.1007/978-3-030-58112-1_31> and Wexler et al. (2019)\n<doi:10.1109/TVCG.2019.2934619>. Optional extensions allow\nthese methods to be applied to a variety of models and use\ncases. Once generated, the counterfactuals can be analyzed and\nvisualized by provided functionalities. The package is\ndescribed in detail in Dandl et al. (2025)\n<doi:10.18637/jss.v115.i09>.",
  "URL": "https://github.com/dandls/counterfactuals",
  "BugReports": "https://github.com/dandls/counterfactuals/issues",
  "License": "LGPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "R.rsp",
  "Roxygen": "list(markdown = TRUE, r6 = TRUE)",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "make",
  "Repository": "https://dandls.r-universe.dev",
  "Date/Publication": "2026-01-14 07:49:17 UTC",
  "RemoteUrl": "https://github.com/dandls/counterfactuals",
  "RemoteRef": "HEAD",
  "RemoteSha": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-13 06:08:31 UTC",
    "User": "root"
  },
  "Author": "Susanne Dandl [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-4324-4163>),\nAndreas Hofheinz [aut],\nMartin Binder [ctb],\nGiuseppe Casalicchio [ctb]",
  "_user": "dandls",
  "_type": "src",
  "_file": "counterfactuals_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/868e04c2d73b17f2d12cc6e487969b544eda8475df1d569a92ddfdc4681f013f",
  "_filesize": 703887,
  "_sha256": "868e04c2d73b17f2d12cc6e487969b544eda8475df1d569a92ddfdc4681f013f",
  "_expires": "2026-10-21T06:12:48.000Z",
  "_created": "2026-07-13T06:08:31.000Z",
  "_published": "2026-07-13T06:12:49.675Z",
  "_jobs": [
    {
      "job": 86746446811,
      "time": 206,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8270556335"
    },
    {
      "job": 86746446796,
      "time": 212,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8270557913"
    },
    {
      "job": 86746446790,
      "time": 175,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8270541322"
    },
    {
      "job": 86746446810,
      "time": 135,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8270532362"
    },
    {
      "job": 86745784163,
      "time": 287,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8270499288"
    },
    {
      "job": 86746446744,
      "time": 172,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8270546880"
    },
    {
      "job": 86746446783,
      "time": 123,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8270533677"
    },
    {
      "job": 86746446756,
      "time": 140,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8270538449"
    },
    {
      "job": 86746446812,
      "time": 144,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8270540064"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449",
  "_status": "success",
  "_upstream": "https://github.com/dandls/counterfactuals",
  "_commit": {
    "id": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
    "author": "dandls <dandl.susanne@gmail.com>",
    "committer": "dandls <dandl.susanne@gmail.com>",
    "message": "resolve workflow\n",
    "time": 1768376957
  },
  "_maintainer": {
    "name": "Susanne Dandl",
    "email": "dandls.datascience@gmail.com",
    "orcid": "0000-0003-4324-4163"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "StatMatch",
      "role": "Imports"
    },
    {
      "package": "iml",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "paradox",
      "role": "Imports"
    },
    {
      "package": "miesmuschel",
      "role": "Imports"
    },
    {
      "package": "bbotk",
      "role": "Imports"
    },
    {
      "package": "gower",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    },
    {
      "package": "GGally",
      "role": "Suggests"
    },
    {
      "package": "trtf",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "keras",
      "role": "Suggests"
    },
    {
      "package": "rchallenge",
      "role": "Suggests"
    },
    {
      "package": "gamlss.data",
      "role": "Suggests"
    },
    {
      "package": "partykit",
      "role": "Suggests"
    },
    {
      "package": "mlt",
      "role": "Suggests"
    },
    {
      "package": "variables",
      "role": "Suggests"
    },
    {
      "package": "basefun",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "role": "Suggests"
    },
    {
      "package": "mlr3",
      "role": "Suggests"
    },
    {
      "package": "mlr3learners",
      "role": "Suggests"
    },
    {
      "package": "mlr3pipelines",
      "role": "Suggests"
    },
    {
      "package": "tidymodels",
      "role": "Suggests"
    },
    {
      "package": "caret",
      "role": "Suggests"
    },
    {
      "package": "mlr",
      "role": "Suggests"
    }
  ],
  "_owner": "dandls",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-03",
      "n": 6
    }
  ],
  "_tags": [],
  "_topics": [
    "interpretable-machine-learning",
    "local-explanations",
    "model-agnostic-explanations"
  ],
  "_stars": 29,
  "_contributors": [
    {
      "user": "andreash0",
      "count": 277,
      "uuid": 33908442
    },
    {
      "user": "dandls",
      "count": 186,
      "uuid": 25373845
    },
    {
      "user": "mb706",
      "count": 8,
      "uuid": 15801081
    },
    {
      "user": "rifatmehreen",
      "count": 1,
      "uuid": 21968577
    },
    {
      "user": "giuseppec",
      "count": 1,
      "uuid": 4238748
    }
  ],
  "_userbio": {
    "uuid": 25373845,
    "type": "user",
    "name": "Susanne Dandl",
    "followers": 25
  },
  "_downloads": {
    "count": 570,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/counterfactuals"
  },
  "_devurl": "https://github.com/dandls/counterfactuals",
  "_searchresults": 38,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/counterfactuals.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/dandls/counterfactuals",
  "_realowner": "dandls",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2023-02-13"
    },
    {
      "version": "0.1.2",
      "date": "2023-03-23"
    },
    {
      "version": "0.1.4",
      "date": "2024-05-14"
    },
    {
      "version": "0.1.5",
      "date": "2024-10-15"
    },
    {
      "version": "0.1.6",
      "date": "2024-10-17"
    },
    {
      "version": "1.0.0",
      "date": "2026-01-14"
    }
  ],
  "_exports": [
    "CounterfactualMethodClassif",
    "CounterfactualMethodRegr",
    "MOCClassif",
    "MOCRegr",
    "NICEClassif",
    "NICERegr",
    "RandomSearchClassif",
    "RandomSearchRegr",
    "WhatIfClassif",
    "WhatIfRegr"
  ],
  "_help": [
    {
      "page": "CounterfactualMethod",
      "title": "Base class for Counterfactual Explanation Methods",
      "topics": [
        "CounterfactualMethod"
      ]
    },
    {
      "page": "CounterfactualMethodClassif",
      "title": "Base class for Counterfactual Explanation Methods for Classification Tasks",
      "concept": [
        "find_counterfactuals"
      ],
      "topics": [
        "CounterfactualMethodClassif"
      ]
    },
    {
      "page": "CounterfactualMethodRegr",
      "title": "Base class for Counterfactual Explanation Methods for Regression Tasks",
      "concept": [
        "find_counterfactuals"
      ],
      "topics": [
        "CounterfactualMethodRegr"
      ]
    },
    {
      "page": "Counterfactuals",
      "title": "Counterfactuals Class",
      "concept": [
        "evaluate",
        "evaluate_set",
        "get_freq_of_feature_changes",
        "plot_freq_of_feature_changes",
        "plot_parallel",
        "plot_surface",
        "revert_subset_to_valid"
      ],
      "topics": [
        "Counterfactuals"
      ]
    },
    {
      "page": "dist_to_interval",
      "title": "Computes the (absolute, pairwise) distance between the vector elements and an interval",
      "topics": [
        "dist_to_interval"
      ]
    },
    {
      "page": "eval_distance",
      "title": "Evaluates a distance function and checks for correct output format",
      "topics": [
        "eval_distance"
      ]
    },
    {
      "page": "make_param_set",
      "title": "Creates a ParamSet for the features of a data.table.",
      "topics": [
        "make_param_set"
      ]
    },
    {
      "page": "MOCClassif",
      "title": "MOC (Multi-Objective Counterfactual Explanations) for Classification Tasks",
      "concept": [
        "get_dominated_hv",
        "plot_search",
        "plot_statistics"
      ],
      "topics": [
        "MOCClassif"
      ]
    },
    {
      "page": "MOCRegr",
      "title": "MOC (Multi-Objective Counterfactual Explanations) for Regression Tasks",
      "concept": [
        "get_dominated_hv",
        "plot_search",
        "plot_statistics"
      ],
      "topics": [
        "MOCRegr"
      ]
    },
    {
      "page": "NICEClassif",
      "title": "NICE (Nearest Instance Counterfactual Explanations) for Classification Tasks",
      "topics": [
        "NICEClassif"
      ]
    },
    {
      "page": "NICERegr",
      "title": "NICE (Nearest Instance Counterfactual Explanations) for Regression Tasks",
      "topics": [
        "NICERegr"
      ]
    },
    {
      "page": "RandomSearchClassif",
      "title": "Random Search for Classification Tasks",
      "topics": [
        "RandomSearchClassif"
      ]
    },
    {
      "page": "RandomSearchRegr",
      "title": "Random Search for Regression Tasks",
      "topics": [
        "RandomSearchRegr"
      ]
    },
    {
      "page": "smallest_n_indices",
      "title": "Returns the indices of the n smallest elements in a vector",
      "topics": [
        "smallest_n_indices"
      ]
    },
    {
      "page": "WhatIfClassif",
      "title": "WhatIf for Classification Tasks",
      "topics": [
        "WhatIfClassif"
      ]
    },
    {
      "page": "WhatIfRegr",
      "title": "WhatIf for Regression Tasks",
      "topics": [
        "WhatIfRegr"
      ]
    }
  ],
  "_readme": "https://github.com/dandls/counterfactuals/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "bbotk",
    "checkmate",
    "cli",
    "codetools",
    "cpp11",
    "data.table",
    "DBI",
    "digest",
    "dplyr",
    "farver",
    "Formula",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gtable",
    "iml",
    "isoband",
    "labeling",
    "lattice",
    "lgr",
    "lifecycle",
    "listenv",
    "lpSolve",
    "magrittr",
    "Matrix",
    "matrixStats",
    "Metrics",
    "miesmuschel",
    "minqa",
    "mitools",
    "mlr3misc",
    "moocore",
    "numDeriv",
    "paradox",
    "parallelly",
    "pillar",
    "pkgconfig",
    "proxy",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "Rdpack",
    "rlang",
    "S7",
    "scales",
    "StatMatch",
    "survey",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "introduction.html.asis",
      "filename": "introduction.html",
      "title": "counterfactuals R package",
      "engine": "R.rsp::asis",
      "headings": [
        "counterfactuals R package",
        "Classification Task",
        "Regression Tasks",
        "References"
      ],
      "created": "2023-02-08 18:52:06",
      "modified": "2024-10-17 09:42:42",
      "commits": 3
    },
    {
      "source": "how-to-add-new-cf-methods.html.asis",
      "filename": "how-to-add-new-cf-methods.html",
      "title": "How to extend the package",
      "engine": "R.rsp::asis",
      "headings": [
        "How to extend the package",
        "Structure of the counterfactuals package",
        "Integrating a new counterfactuals explanation method",
        "Use Case",
        "Comments",
        "References"
      ],
      "created": "2023-02-08 18:52:06",
      "modified": "2024-10-17 09:42:42",
      "commits": 3
    },
    {
      "source": "other_models.html.asis",
      "filename": "other_models.html",
      "title": "Other types of models",
      "engine": "R.rsp::asis",
      "headings": [
        "Other types of models",
        "rpart - caret package",
        "rpart - tidymodels package",
        "rpart - mlr package",
        "Decision tree - rpart package",
        "References"
      ],
      "created": "2023-02-08 18:52:06",
      "modified": "2024-10-17 09:42:42",
      "commits": 3
    }
  ],
  "_score": 6.82033284489941,
  "_indexed": true,
  "_nocasepkg": "counterfactuals",
  "_universes": [
    "dandls"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-13T06:11:39.000Z",
      "distro": "resolute",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/34f7b1a11c4466a0154074d77e33816ed3498b61b861d0baf716701df3070d93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-13T06:11:41.000Z",
      "distro": "resolute",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/10c5a076c5473690b931ea90729c569e51b216ba8a981a2b814f08bfc5e11183",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-13T06:10:52.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/ae2ef4f4435a6dcf4139abe550080dcec974dfb4a5ae4424ceaa6c47751952d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-13T06:10:26.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/0a93075fac75f34ccfdc3a95ce68a22a2d9716f5c598b5929d5ab9fd1969bfef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-07-13T06:11:47.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/759684cdcd6615fc9da4d6c3fed697fb5a15ea38d2de0c716408e431e65f62c8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-13T06:10:12.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/ff8c238012c7c99d8094663978dcb79c7757beb694b783dc85be8909180a91c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-13T06:10:21.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/6bd1e97dae5a2f430c16ddb86b49e27c3933adcd30054a4d6b52c317ba269a78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-13T06:10:37.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/55e2cff855125a5a7b4427ec8b803ea04cbb5731c377fec6e3511c7d68073280",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/29227881449"
    }
  ]
}