{
  "_id": "6af1bd96ef600c02c406abfa",
  "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-11-09 12:09:38 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/086446097a8b2473a1480bcf79c006fb12adcc9ccad143caf9d05375eca3b73d",
  "_filesize": 172011,
  "_sha256": "086446097a8b2473a1480bcf79c006fb12adcc9ccad143caf9d05375eca3b73d",
  "_expires": "2027-02-17T12:33:24.000Z",
  "_created": "2026-11-09T12:09:38.000Z",
  "_published": "2026-11-09T12:33:26.206Z",
  "_upstream": "https://github.com/cran/matchr",
  "_status": "success",
  "_maintainer": {
    "name": "Christopher Mann",
    "email": "cmann3@unl.edu",
    "login": "cmann3",
    "description": "",
    "uuid": 24863314
  },
  "_jobs": [
    {
      "job": 129151604938,
      "time": 113,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "13671054591"
    },
    {
      "job": 129151605178,
      "time": 107,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "13672406493"
    },
    {
      "job": 129151605051,
      "time": 103,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "13673706811"
    },
    {
      "job": 129151605073,
      "time": 90,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "13672278808"
    },
    {
      "job": 129150495675,
      "time": 144,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13672211309"
    },
    {
      "job": 129151605099,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13672735453"
    },
    {
      "job": 129151605137,
      "time": 69,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "13671612885"
    },
    {
      "job": 129151605256,
      "time": 67,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "13671268666"
    },
    {
      "job": 129151605375,
      "time": 64,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "13672545841"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 350,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/matchr"
  },
  "_searchresults": 9,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/matchr.html",
    "LICENSE"
  ],
  "_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-11-09T12:11:38.000Z",
      "distro": "resolute",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/c37ad905ab391317bbea743c2a1ac61289e8a6d1d13381d4b034920d58cd3ee9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-09T12:11:37.000Z",
      "distro": "resolute",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/f76711237d8be1f1ca7420fbcaef9ff954871c73df2a993ade6c5387c1789f53",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-11-09T12:32:55.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/5ff80b7e4727f44ebb1a35dc863cb8843a9f57dec6697f133f2fd9db8337314f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-11-09T12:26:33.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/60a3aff03688534e8f3aa8b0800ca73f3ffc1f39033ad2a26ff464d1c8f3f24e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-11-09T12:11:38.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/1462c785b764a30a517f6087c7adca6a6a234afb0b5134bf4593aa5e5c720190",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-09T12:10:44.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/8f8dcccd64c9c2cf172081610b9268928df13f1a0b648efca6ff242114334978",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-09T12:10:46.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/b1df7b368758ec8b92b608c817185a78ca9d48b3025d3ccdd69a0089573bffeb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-09T12:10:40.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/cb926bfb656f54589d99e9f32d8004a3852480aec8f9d6bace9f6fbb85314f1b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/42614332776"
    }
  ]
}