{
  "_id": "6acdebdca14063b82c3ad0a3",
  "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-10-13 08:22:54 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/f0176a1287346262a5ec8e01291a305a3135a336d9df03c949552dc5ebaea823",
  "_filesize": 304445,
  "_sha256": "f0176a1287346262a5ec8e01291a305a3135a336d9df03c949552dc5ebaea823",
  "_expires": "2027-01-21T08:29:14.000Z",
  "_created": "2026-10-13T08:22:54.000Z",
  "_published": "2026-10-13T08:29:16.051Z",
  "_buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115200680085,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11798860368"
    },
    {
      "job": 115200680031,
      "time": 141,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11797833165"
    },
    {
      "job": 115200680163,
      "time": 92,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11797823924"
    },
    {
      "job": 115200679966,
      "time": 104,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11797624012"
    },
    {
      "job": 115199524422,
      "time": 177,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11798685580"
    },
    {
      "job": 115200680093,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11798800567"
    },
    {
      "job": 115200679969,
      "time": 65,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11798745740"
    },
    {
      "job": 115200679994,
      "time": 75,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11798381260"
    },
    {
      "job": 115200680007,
      "time": 69,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11798586120"
    }
  ],
  "_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"
  },
  "_distro": "resolute",
  "_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-44",
      "n": 2
    }
  ],
  "_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": 53,
    "description": "Senior Data Scientist at @yougov-datascience |\r\nPolitical Science PhD"
  },
  "_downloads": {
    "count": 396,
    "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.1",
  "_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-10-13T08:25:19.000Z",
      "distro": "resolute",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/0f2eb8a6bd3ac668bdbacc73db502bbe094b14d4887cc724b11bc40e60031018",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0.9000",
      "date": "2026-10-13T08:25:19.000Z",
      "distro": "resolute",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/40f883483013b1599c2ea4c5a25b1c45f5dbaa5eb962e7850cf768e94d556f31",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-10-13T08:28:40.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/dc11b174b33a96bc6c4b7e89aee2aac91876fd1f532c82994181dcdc6a7810d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-10-13T08:25:48.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/0b078c858daffc22fbb2d66828f54ba159a4ad9296a67f4c5346de901d4c79c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0.9000",
      "date": "2026-10-13T08:24:48.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/7f94c60d8b020f4f3fd856d057c85f283470d1fc312ced9816df88169f9ac88f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-10-13T08:23:55.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/22d0e83e0631f67060b47d901837729d628b6cd2785ada1a9c9e3e9898732850",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-10-13T08:24:05.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/c2d15a81bd4ff440e3e032f13b3d6ae5b0cdccf4ea67f64ce9c43280a8c1f8aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-10-13T08:24:04.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/c39fc824660463dd78c2cd2c4c5b6d6e4ab5cb8114d75c63ede41dbe8e4606c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/38368495755"
    }
  ]
}