{
  "_id": "6a1404efacfb0bcc41d390ad",
  "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-05-25 08:11:51 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>",
  "MD5sum": "1d49e4c0c92cf36141fefa00a0301364",
  "_user": "rossellhayes",
  "_type": "src",
  "_file": "incase_0.4.0.9000.tar.gz",
  "_fileid": "aa5848bd7a3a9919d0435135995458fa1dde7bef424b4c5afa92715b49f9fbb7",
  "_filesize": 306039,
  "_sha256": "aa5848bd7a3a9919d0435135995458fa1dde7bef424b4c5afa92715b49f9fbb7",
  "_created": "2026-05-25T08:11:51.000Z",
  "_published": "2026-05-25T08:14:39.665Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77679010452,
      "time": 135,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7194375493"
    },
    {
      "job": 77679010459,
      "time": 113,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7194370475"
    },
    {
      "job": 77679010463,
      "time": 84,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7194363253"
    },
    {
      "job": 77679010498,
      "time": 74,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7194361078"
    },
    {
      "job": 77678701342,
      "time": 149,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7194341594"
    },
    {
      "job": 77679010484,
      "time": 95,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7194366037"
    },
    {
      "job": 77679010501,
      "time": 73,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7194360621"
    },
    {
      "job": 77679010494,
      "time": 76,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7194361404"
    },
    {
      "job": 77679010500,
      "time": 74,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7194361053"
    }
  ],
  "_buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/rossellhayes/incase",
  "_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
  },
  "_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"
  },
  "_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": [
    {
      "week": "2025-30",
      "n": 2
    },
    {
      "week": "2025-35",
      "n": 1
    },
    {
      "week": "2025-44",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2025-07-24"
    }
  ],
  "_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",
    "description": "Senior Data Scientist at @yougov-datascience |\r\nPolitical Science PhD"
  },
  "_downloads": {
    "count": 232,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/incase"
  },
  "_devurl": "https://github.com/rossellhayes/incase",
  "_pkgdown": "https://pkg.rossellhayes.com/incase/",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/incase.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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": 4.079181246047625,
  "_indexed": true,
  "_nocasepkg": "incase",
  "_universes": [
    "rossellhayes"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0.9000",
      "date": "2026-05-25T08:14:04.000Z",
      "distro": "noble",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "72b3047503bc4d6a0f5d158ddd450f43e99c9139ac1cac3f70b7434091e210a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0.9000",
      "date": "2026-05-25T08:13:44.000Z",
      "distro": "noble",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "ce2bb39720c3de3e9c4fda6f712610d13148b4ed72cdd57238c63a42c6fe0242",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-05-25T08:13:20.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "deac860ed7d3e6dce054cafff2df12011a4c1b08ca1d2a82902da3d17a1b7d1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-05-25T08:13:11.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "ba932ea347ad8c9ff4cc21de9951b1e81fe2e4156df9d889037f572464406adf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0.9000",
      "date": "2026-05-25T08:13:42.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "4ccac8a0337c5979301190f8c4bd61f252bc9a3e3df61d9a6f0e1231a1014a11",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-05-25T08:12:55.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "5b312fabc399fc1f834565e0df04cdb6a6e199852b44b267ac9ebb91ce811266",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-05-25T08:13:00.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "5da739e66785b456c2b682fd00acbad0d98d45a3e372dccf858f67487c516257",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-05-25T08:12:59.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "5e3a92fb25ed89771656dacdf62183d59ad639efe30307d54587045a0a80f182",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/26390451113"
    }
  ]
}