{
  "_id": "6af582a2b90b31e79afd51f0",
  "Type": "Package",
  "Package": "incase",
  "Title": "Pipe-Friendly Vector Replacement with Case Statements",
  "Version": "0.4.0.9000",
  "Authors@R": "c(\nperson(\"Alexander\", \"Rossell Hayes\", , \"alexander@rossellhayes.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0001-9412-0457\")),\nperson(\"Patrice\", \"Kiener\", , \"fattailsr@inmodelia.com\", role = \"ctb\",\ncomment = c(\"Contributed example for fn_case()\", ORCID = \"0000-0002-0505-9920\"))\n)",
  "Description": "Offers a pipe-friendly alternative to the 'dplyr'\nfunctions case_when() and if_else(), as well as a number of\nuser-friendly simplifications for common use cases.  These\nfunctions accept a vector as an optional first argument,\nallowing conditional statements to be built using the\n'magrittr' dot operator.  The functions also coerce all outputs\nto the same type, meaning you no longer have to worry about\nusing specific typed variants of NA or explicitly declaring\ninteger outputs, and evaluate outputs somewhat lazily, so you\ndon't waste time on long operations that won't be used.",
  "License": "MIT + file LICENSE",
  "URL": "https://pkg.rossellhayes.com/incase/,\nhttps://github.com/rossellhayes/incase",
  "BugReports": "https://github.com/rossellhayes/incase/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Repository": "https://rossellhayes.r-universe.dev",
  "Date/Publication": "2025-10-27 15:47:45 UTC",
  "RemoteUrl": "https://github.com/rossellhayes/incase",
  "RemoteRef": "HEAD",
  "RemoteSha": "13062509ef742b79cd276e175e01971d17c85218",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-12 09:07:13 UTC",
    "User": "root"
  },
  "Author": "Alexander Rossell Hayes [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-9412-0457>),\nPatrice Kiener [ctb] (Contributed example for fn_case(), ORCID:\n<https://orcid.org/0000-0002-0505-9920>)",
  "Maintainer": "Alexander Rossell Hayes <alexander@rossellhayes.com>",
  "_user": "rossellhayes",
  "_type": "src",
  "_file": "incase_0.4.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/71ea75930464b121470ac95497340599b96629238f01a24aeb59f990230f9eec",
  "_filesize": 304409,
  "_sha256": "71ea75930464b121470ac95497340599b96629238f01a24aeb59f990230f9eec",
  "_expires": "2027-02-20T09:10:57.000Z",
  "_created": "2026-11-12T09:07:13.000Z",
  "_published": "2026-11-12T09:10:58.783Z",
  "_upstream": "https://github.com/rossellhayes/incase",
  "_status": "success",
  "_maintainer": {
    "name": "Alexander Rossell Hayes",
    "email": "alexander@rossellhayes.com",
    "login": "rossellhayes",
    "description": "Senior Data Scientist at @yougov-datascience |\nPolitical Science PhD",
    "uuid": 44556601,
    "orcid": "0000-0001-9412-0457"
  },
  "_jobs": [
    {
      "job": 131082183561,
      "time": 99,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13930261209"
    },
    {
      "job": 131082183680,
      "time": 107,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13928753993"
    },
    {
      "job": 131082183560,
      "time": 118,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13928779469"
    },
    {
      "job": 131082183578,
      "time": 110,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13929857097"
    },
    {
      "job": 131080481840,
      "time": 206,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13930280969"
    },
    {
      "job": 131082183557,
      "time": 93,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13928484402"
    },
    {
      "job": 131082183524,
      "time": 175,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13930111163"
    },
    {
      "job": 131082183694,
      "time": 149,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13930370051"
    },
    {
      "job": 131082183648,
      "time": 182,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13929148618"
    }
  ],
  "_buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992",
  "_commit": {
    "id": "13062509ef742b79cd276e175e01971d17c85218",
    "author": "rossellhayes <alexander@rossellhayes.com>",
    "committer": "rossellhayes <alexander@rossellhayes.com>",
    "message": "fix: improve formatting of error messages when `.exhaustive` is `TRUE`\n",
    "time": 1761580065
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "backports",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "plu",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    }
  ],
  "_owner": "rossellhayes",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "magrittr",
    "magrittr-pipes",
    "recode-values",
    "tidyverse"
  ],
  "_stars": 8,
  "_contributors": [
    {
      "user": "rossellhayes",
      "count": 180,
      "uuid": 44556601
    }
  ],
  "_userbio": {
    "uuid": 44556601,
    "type": "user",
    "name": "Alex Rossell Hayes",
    "followers": 54,
    "description": "Senior Data Scientist at @yougov-datascience |\r\nPolitical Science PhD"
  },
  "_downloads": {
    "count": 526,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/incase"
  },
  "_devurl": "https://github.com/rossellhayes/incase",
  "_pkgdown": "https://pkg.rossellhayes.com/incase/",
  "_searchresults": 10,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/incase.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/rossellhayes/incase",
  "_realowner": "rossellhayes",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-09-15"
    },
    {
      "version": "0.2.0",
      "date": "2020-12-17"
    },
    {
      "version": "0.2.1",
      "date": "2021-01-14"
    },
    {
      "version": "0.3.0",
      "date": "2021-04-03"
    },
    {
      "version": "0.3.1",
      "date": "2021-06-06"
    },
    {
      "version": "0.3.2",
      "date": "2023-08-21"
    },
    {
      "version": "0.4.0",
      "date": "2025-07-24"
    }
  ],
  "_exports": [
    "%>%",
    "fn_case",
    "fn_case_fct",
    "fn_case_list",
    "fn_switch_case",
    "fn_switch_case_fct",
    "fn_switch_case_list",
    "grep_case",
    "grep_case_fct",
    "grep_case_list",
    "if_case",
    "in_case",
    "in_case_fct",
    "in_case_list",
    "switch_case",
    "switch_case_fct",
    "switch_case_list"
  ],
  "_help": [
    {
      "page": "fn_case",
      "title": "Case statements applying a function to all inputs",
      "topics": [
        "fn_case"
      ]
    },
    {
      "page": "grep_case",
      "title": "Switch-style recoding of values with string pattern matching",
      "topics": [
        "grep_case"
      ]
    },
    {
      "page": "if_case",
      "title": "Pipe-friendly vectorized if",
      "topics": [
        "if_case"
      ]
    },
    {
      "page": "in_case",
      "title": "A pipe-friendly general vectorized if",
      "topics": [
        "in_case"
      ]
    },
    {
      "page": "in_case_fct",
      "title": "Case statements returning a factor",
      "topics": [
        "fn_case_fct",
        "fn_switch_case_fct",
        "grep_case_fct",
        "in_case_fct",
        "switch_case_fct"
      ]
    },
    {
      "page": "in_case_list",
      "title": "Case statements returning a list",
      "topics": [
        "fn_case_list",
        "fn_switch_case_list",
        "grep_case_list",
        "in_case_list",
        "switch_case_list"
      ]
    },
    {
      "page": "switch_case",
      "title": "Switch-style recoding of values",
      "topics": [
        "fn_switch_case",
        "switch_case"
      ]
    }
  ],
  "_pkglogo": "https://github.com/rossellhayes/incase/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/rossellhayes/incase/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "cli",
    "glue",
    "lifecycle",
    "magrittr",
    "plu",
    "rlang"
  ],
  "_score": 3.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "incase",
  "_universes": [
    "rossellhayes"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0.9000",
      "date": "2026-11-12T09:09:01.000Z",
      "distro": "resolute",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/7c597f6e0fdd42b4c665db58be38922edeabe125bb447fbfec2ec8a0f4fecccb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.4.0.9000",
      "date": "2026-11-12T09:09:02.000Z",
      "distro": "resolute",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/6f5932d52374f4806ec6d3035b055d9baa6722943b1c9bb74077a3de4e460773",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-11-12T09:09:16.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/9f6b30ed8569f7e8afe602850bb53e55a5f1cb50e88674682c57ba19aaa08405",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-11-12T09:09:07.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/67369563e42a072310989b37eb60c17713e3e8160bac2eb0dd0dc6e705579acc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0.9000",
      "date": "2026-11-12T09:09:06.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/6cb5c8a5ae60cc1666f239e6809c81a15bc1079a48d54bc084c40f00a368cc42",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-11-12T09:09:21.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/4c1aa71090a2a5f64cf09d9beb4d9ef90c408e31295c9e3f27d4b8248b88ceb3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-11-12T09:09:08.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/d1f6404299374cef1c96c5820c09bdf3c287313938a9d99910edf74446934166",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-11-12T09:09:39.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/b70e27d7bc2be8ff74c3ec70c9c99f0ba511d0b0d4771d0a0d28d3dc25e99843",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/43188110992"
    }
  ]
}