{
  "_id": "6a57115eff0138dec5d6d4c0",
  "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-07-15 04:46: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>",
  "_user": "rossellhayes",
  "_type": "src",
  "_file": "incase_0.4.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/76fc9ddbcb9bc6e8077ef98fd7cd450c41478726cf4756fb884f04de69c67a31",
  "_filesize": 306654,
  "_sha256": "76fc9ddbcb9bc6e8077ef98fd7cd450c41478726cf4756fb884f04de69c67a31",
  "_expires": "2026-10-23T04:49:32.000Z",
  "_created": "2026-07-15T04:46:51.000Z",
  "_published": "2026-07-15T04:49:34.695Z",
  "_jobs": [
    {
      "job": 87270510768,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8332804128"
    },
    {
      "job": 87270510776,
      "time": 120,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8332804121"
    },
    {
      "job": 87270510792,
      "time": 113,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8332801898"
    },
    {
      "job": 87270510798,
      "time": 76,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8332792781"
    },
    {
      "job": 87270185581,
      "time": 158,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8332773458"
    },
    {
      "job": 87270510789,
      "time": 92,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8332797053"
    },
    {
      "job": 87270510810,
      "time": 65,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8332790483"
    },
    {
      "job": 87270510803,
      "time": 76,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8332793181"
    },
    {
      "job": 87270510796,
      "time": 93,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8332797760"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681",
  "_status": "success",
  "_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-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",
    "followers": 56,
    "description": "Senior Data Scientist at @yougov-datascience |\r\nPolitical Science PhD"
  },
  "_downloads": {
    "count": 398,
    "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.1",
  "_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",
    "LICENSE",
    "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-07-15T04:48:55.000Z",
      "distro": "resolute",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/a8e189bdca19585a7ca8ca50c4b00a826ec6937b079954b3d0b1ae3be9ed08a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0.9000",
      "date": "2026-07-15T04:48:55.000Z",
      "distro": "resolute",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/461041a993e18ff3100c0fb73a8422f9021dfa830938aec992406f79d746afe2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-07-15T04:48:47.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/630e265bb72cc39ae310058c4477b389a79d54bc1137e659c58b56b36f95395d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0.9000",
      "date": "2026-07-15T04:48:13.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/163043c140fcf91c6704863bae18626296da49a98de610efdb3427dfa2423fe1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0.9000",
      "date": "2026-07-15T04:48:42.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/2ee00d2bd8ea46b1e629ba6e0f794331147f08133fd547faedd5fd6f5db43ea5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-07-15T04:47:59.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/71cf663a94f107026916512a2dd1556cba5ac3f52652943a11f03b90380396d9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-07-15T04:48:06.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/2cf0ea3ab72e689ac37fd1a536a1ca51df4244e1bdf25925cac13140c82e6d40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0.9000",
      "date": "2026-07-15T04:48:23.000Z",
      "commit": "13062509ef742b79cd276e175e01971d17c85218",
      "fileid": "https://r2.ropensci.org/d561d3c8571e6d9e38f7c6759b98d867bf401017db1882f13a9a4750b1671cb0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rossellhayes/actions/runs/29389684681"
    }
  ]
}