{
  "_id": "6a48c612b5e98c40829faff5",
  "Package": "matchr",
  "Type": "Package",
  "Title": "Pattern Matching and Enumerated Types in R",
  "Version": "0.1.0",
  "Author": "Christopher Mann <cmann3@unl.edu>",
  "Maintainer": "Christopher Mann <cmann3@unl.edu>",
  "Description": "Inspired by pattern matching and enum types in Rust and\nmany functional programming languages, this package offers an\nupdated version of the 'switch' function called 'Match' that\naccepts atomic values, functions, expressions, and enum\nvariants. Conditions and return expressions are separated by\n'->' and multiple conditions can be associated with the same\nreturn expression using '|'. 'Match' also includes support for\n'fallthrough'. The package also replicates the Result and\nOption enums from Rust.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.1.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-04 07:47:28 UTC",
    "User": "root"
  },
  "Repository": "https://cmann3.r-universe.dev",
  "Date/Publication": "2021-09-09 08:10:02 UTC",
  "RemoteUrl": "https://github.com/cran/matchr",
  "RemoteRef": "HEAD",
  "RemoteSha": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
  "_user": "cmann3",
  "_type": "src",
  "_file": "matchr_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/7c6691ab2d8ff2c5451bdad230c58a2f648f3eff6166fb228c98d4dd75ee3da3",
  "_filesize": 173922,
  "_sha256": "7c6691ab2d8ff2c5451bdad230c58a2f648f3eff6166fb228c98d4dd75ee3da3",
  "_expires": "2026-10-12T08:36:32.000Z",
  "_created": "2026-07-04T07:47:28.000Z",
  "_published": "2026-07-04T08:36:33.990Z",
  "_jobs": [
    {
      "job": 85115264963,
      "time": 103,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8079761309"
    },
    {
      "job": 85115264959,
      "time": 96,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8079760312"
    },
    {
      "job": 85115264955,
      "time": 68,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8080072668"
    },
    {
      "job": 85115264960,
      "time": 84,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8080089344"
    },
    {
      "job": 85115111853,
      "time": 158,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079748043"
    },
    {
      "job": 85115264951,
      "time": 101,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8079760810"
    },
    {
      "job": 85115264986,
      "time": 69,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8079757034"
    },
    {
      "job": 85115264977,
      "time": 74,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8079757891"
    },
    {
      "job": 85115264980,
      "time": 65,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8079756508"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919",
  "_status": "success",
  "_upstream": "https://github.com/cran/matchr",
  "_commit": {
    "id": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
    "author": "Christopher Mann <cmann3@unl.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1631175002
  },
  "_maintainer": {
    "name": "Christopher Mann",
    "email": "cmann3@unl.edu",
    "login": "cmann3",
    "description": "",
    "uuid": 24863314
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "rlang",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Depends"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "cmann3",
      "count": 1,
      "uuid": 24863314
    }
  ],
  "_userbio": {
    "uuid": 24863314,
    "type": "user",
    "name": "Christopher R. Mann",
    "followers": 3
  },
  "_downloads": {
    "count": 332,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/matchr"
  },
  "_searchresults": 9,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/matchr.html",
    "LICENSE",
    "manual.pdf"
  ],
  "_realowner": "cmann3",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-09-09"
    }
  ],
  "_exports": [
    "%.%",
    "%fn%",
    "Enum",
    "enum_type",
    "Err",
    "fallthrough",
    "into_option",
    "into_result",
    "is.enum",
    "is.enum_type",
    "is.err",
    "is.none",
    "is.ok",
    "is.some",
    "is.variant",
    "Match",
    "match_cond",
    "Matchply",
    "Ok",
    "Some",
    "Try",
    "unwrap",
    "unwrap_or",
    "variant"
  ],
  "_datasets": [
    {
      "name": "None",
      "title": "None",
      "object": "None",
      "class": [
        "Option",
        "Enum"
      ],
      "fields": [],
      "table": true,
      "tojson": false
    },
    {
      "name": "Option",
      "title": "Option",
      "object": "Option",
      "class": [
        "EnumGenerator"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "Result",
      "title": "Result",
      "object": "Result",
      "class": [
        "EnumGenerator"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "grapes-.-grapes",
      "title": "Compose Functions",
      "topics": [
        "%.%"
      ]
    },
    {
      "page": "grapes-fn-grapes",
      "title": "Create Function",
      "topics": [
        "%fn%"
      ]
    },
    {
      "page": "bang",
      "title": "Extract Result or Return",
      "topics": [
        "!.Option",
        "!.Result",
        "bang"
      ]
    },
    {
      "page": "Enum",
      "title": "Create Enumerated Type",
      "topics": [
        "Enum"
      ]
    },
    {
      "page": "enum_type",
      "title": "Enum Type",
      "topics": [
        "enum_type"
      ]
    },
    {
      "page": "Err",
      "title": "Create an 'Err' Result",
      "topics": [
        "Err"
      ]
    },
    {
      "page": "fallthrough",
      "title": "Fall Through Match",
      "topics": [
        "fallthrough"
      ]
    },
    {
      "page": "into_option",
      "title": "Convert Object into Option",
      "topics": [
        "into_option"
      ]
    },
    {
      "page": "into_result",
      "title": "Convert Object into Result",
      "topics": [
        "into_result"
      ]
    },
    {
      "page": "is.enum",
      "title": "Is Object an Enum",
      "topics": [
        "is.enum"
      ]
    },
    {
      "page": "is.enum_type",
      "title": "Check Enum Type",
      "topics": [
        "is.enum_type"
      ]
    },
    {
      "page": "is.err",
      "title": "Check if Result is an Err",
      "topics": [
        "is.err"
      ]
    },
    {
      "page": "is.none",
      "title": "Check if Option is None",
      "topics": [
        "is.none"
      ]
    },
    {
      "page": "is.ok",
      "title": "Check if Result is Ok",
      "topics": [
        "is.ok"
      ]
    },
    {
      "page": "is.some",
      "title": "Check if Option is Some",
      "topics": [
        "is.some"
      ]
    },
    {
      "page": "is.variant",
      "title": "Check Enum Variant",
      "topics": [
        "is.variant"
      ]
    },
    {
      "page": "Match",
      "title": "Match Value Against Multiple Values",
      "topics": [
        "Match"
      ]
    },
    {
      "page": "match_cond",
      "title": "Check and Evaluate Match Condition",
      "topics": [
        "match_cond"
      ]
    },
    {
      "page": "Matchply",
      "title": "Match Each Object in List or Vector",
      "topics": [
        "Matchply"
      ]
    },
    {
      "page": "None",
      "title": "None",
      "topics": [
        "None"
      ]
    },
    {
      "page": "Ok",
      "title": "Create an 'Ok' Result",
      "topics": [
        "Ok"
      ]
    },
    {
      "page": "Option",
      "title": "Option",
      "topics": [
        "Option"
      ]
    },
    {
      "page": "Result",
      "title": "Result",
      "topics": [
        "Result"
      ]
    },
    {
      "page": "Some",
      "title": "Create an 'Some' Option",
      "topics": [
        "Some"
      ]
    },
    {
      "page": "Try",
      "title": "Execute Expression as Result",
      "topics": [
        "Try"
      ]
    },
    {
      "page": "unwrap",
      "title": "Extract the Value Contained in Enum",
      "topics": [
        "unwrap",
        "unwrap_or"
      ]
    },
    {
      "page": "variant",
      "title": "Enum Variant",
      "topics": [
        "variant"
      ]
    }
  ],
  "_rundeps": [
    "rlang"
  ],
  "_score": 1.7781512503836436,
  "_indexed": true,
  "_nocasepkg": "matchr",
  "_universes": [
    "cmann3"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-04T07:49:15.000Z",
      "distro": "resolute",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/8d4914fc7d2a5de6b2cd1ef3589e6b250dc8c515b935b652e46d7e44bf79de3c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-04T07:49:08.000Z",
      "distro": "resolute",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/90cc8b0e22105fd0d41c973d4fe7a12ed461f72f72562817ef0628b87ed45028",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-04T08:33:41.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/2be2c7331d419a47b897b5a8adf8f24d787735094a6cb6fdbbf249a8f7dcfde6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-04T08:36:05.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/6d4c6b4dafbb43559270cb873060f75865c31fc25866e1b7bbc72d27f85a209c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-04T07:49:23.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/8166b8c638c711b2654b7881826e84dc8750cc336cbbb1563e3b0bbbd6bd7252",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-04T07:48:34.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/5b752f609c38cb6ce7c4221251b9fe49507f493224e8c32f7048bb5703a24945",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-04T07:48:42.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/9696bae5f7a7ae76c3f7e2000a9ba689e0ae2f46a07e0ea7ffed99894f31e927",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-04T07:48:30.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/fa014a9c050c3ad77ba95fcb84aba9e607f96b559217fac4b16523a6c51ccb56",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/28699519919"
    }
  ]
}