{
  "_id": "6a214b1ccd65a98ecbd2c59e",
  "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-06-04 09:50:40 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",
  "MD5sum": "25108b8b7d7505424f3127fb3a1018bf",
  "_user": "cmann3",
  "_type": "src",
  "_file": "matchr_0.1.0.tar.gz",
  "_fileid": "a34b8da2c055e9b191f968290f4c4289ef3d98d0ff85b46c95ea3f5a52992a97",
  "_filesize": 171550,
  "_sha256": "a34b8da2c055e9b191f968290f4c4289ef3d98d0ff85b46c95ea3f5a52992a97",
  "_created": "2026-06-04T09:50:40.000Z",
  "_published": "2026-06-04T09:53:32.355Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79493468338,
      "time": 97,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7408392324"
    },
    {
      "job": 79493468377,
      "time": 135,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7408405186"
    },
    {
      "job": 79493468349,
      "time": 78,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7408385123"
    },
    {
      "job": 79493468369,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7408401046"
    },
    {
      "job": 79493107195,
      "time": 128,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408356178"
    },
    {
      "job": 79493468311,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408396406"
    },
    {
      "job": 79493468397,
      "time": 74,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7408384230"
    },
    {
      "job": 79493468434,
      "time": 57,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7408377738"
    },
    {
      "job": 79493468407,
      "time": 62,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7408379678"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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"
  },
  "_downloads": {
    "count": 235,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/matchr"
  },
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/matchr.html",
    "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-06-04T09:52:25.000Z",
      "distro": "noble",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "5a174cd60818a81a2b2388992b1304894b147bc4671ad0ef542655646f002905",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-04T09:53:01.000Z",
      "distro": "noble",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "90f5b9548fb9704226454711241738d9762359b137c114b59e2c7c717386f980",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-06-04T09:52:08.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "c7c6101be518a8af92cc16221076d33af76b31aa8b05389871c9bf86023f80ea",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-06-04T09:52:47.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "f7edd02eef4b4cf09a1879eb10feb842fc1d3067f0b60217be5e5d387b8cf649",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-06-04T09:52:47.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "addea3004d29288adece287ab73216d38f0e473308135ae9a103b3ffd6d833a4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-04T09:51:57.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "1e2508b29721257a625ac5ac4eadfc778494be594300a925ea40bdf816a7527c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-04T09:51:39.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "44d2ac2ccb8384a99341a82e7f545786c8641092aa2ff5702182d22a9530e50e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-04T09:51:44.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "e1f4ecd0e3820504c58082ae35303d95e47aa4619beb92ba0302d13d96f14f77",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/26944222406"
    }
  ]
}