{
  "_id": "6a49ec3c54b1f994258aae0d",
  "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-06-13 06:39:52 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/b5baffb04241810be2d183970109b5e4ab1fb8236f41d220b20c36ebe42be1e1",
  "_filesize": 703755,
  "_sha256": "b5baffb04241810be2d183970109b5e4ab1fb8236f41d220b20c36ebe42be1e1",
  "_expires": "2026-10-13T05:31:38.000Z",
  "_created": "2026-06-13T06:39:52.000Z",
  "_published": "2026-07-05T05:31:40.490Z",
  "_jobs": [
    {
      "job": 85195868802,
      "time": 208,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7608279704"
    },
    {
      "job": 85195868819,
      "time": 209,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7608280623"
    },
    {
      "job": 85195868825,
      "time": 167,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7608279441"
    },
    {
      "job": 85195868741,
      "time": 166,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7608272791"
    },
    {
      "job": 85195868757,
      "time": 249,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7608253286"
    },
    {
      "job": 85195868828,
      "time": 156,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7608273337"
    },
    {
      "job": 85195868713,
      "time": 259,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7608285642"
    },
    {
      "job": 85195868731,
      "time": 257,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7608285274"
    },
    {
      "job": 85195868810,
      "time": 251,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7608284603"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263",
  "_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": "noble",
  "_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": 28,
  "_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"
  },
  "_downloads": {
    "count": 679,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/counterfactuals"
  },
  "_devurl": "https://github.com/dandls/counterfactuals",
  "_searchresults": 37,
  "_rbuild": "4.6.0",
  "_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",
    "numDeriv",
    "paradox",
    "parallelly",
    "pillar",
    "pkgconfig",
    "proxy",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "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": [],
      "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": [],
      "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": [],
      "created": "2023-02-08 18:52:06",
      "modified": "2024-10-17 09:42:42",
      "commits": 3
    }
  ],
  "_score": 6.793511005792858,
  "_indexed": true,
  "_nocasepkg": "counterfactuals",
  "_universes": [
    "dandls"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-13T06:42:56.000Z",
      "distro": "noble",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/edbd756f7c6ff25b3c462bc08f127356bae6cbe8cce445c4b8842d83e4e656d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-13T06:43:04.000Z",
      "distro": "noble",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/4a143f73dfdab0e2843834901dbb5fa3a94000627e14414fa84b7efc3a004221",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-06-13T06:43:15.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/f3fdaa11de9b62d1a4f2edce7f6ae3abb5b796d7ff35683ac127187d441e34d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-06-13T06:42:16.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/6d18db3bf6c3aced3674bc4de0e5093d01a40cce25573dfa6468c3325b80b99c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-13T06:42:55.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/5acbf6798e8b944f411a3f78f2a28f233f17ae16aa3b9ee9a9e3994f279e2a07",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-13T06:43:40.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/31ad81ca9ff472d3282359709e3cb4f74796eae7d103a4851da39c3adef7b177",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-13T06:43:25.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/008ed1404de57681651de220306a58d34dcf3107339c8482c8b9ee9eb9d71c6a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-13T06:43:23.000Z",
      "commit": "0748e95300edd30001ec3e173cd8a1b8511b5d99",
      "fileid": "https://r2.ropensci.org/6684308a47f6a6f8b2eacec7a7dfa42527c6cc7bd1bc661113f7fdcae56f1fcf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dandls/actions/runs/27459239263"
    }
  ]
}