{
  "_id": "6aca6bd1fe5cc25786e88d32",
  "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-10-10 15:47:21 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/acd58fde98bb0c34a0f1956bc9003b4f3ad41dacdc7a963440fd04f6d551fb70",
  "_filesize": 171996,
  "_sha256": "acd58fde98bb0c34a0f1956bc9003b4f3ad41dacdc7a963440fd04f6d551fb70",
  "_expires": "2027-01-18T16:46:07.000Z",
  "_created": "2026-10-10T15:47:21.000Z",
  "_published": "2026-10-10T16:46:09.051Z",
  "_buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114250856655,
      "time": 91,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11674366898"
    },
    {
      "job": 114250856620,
      "time": 90,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11674816899"
    },
    {
      "job": 114250856624,
      "time": 77,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11675987886"
    },
    {
      "job": 114250856614,
      "time": 112,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11676476438"
    },
    {
      "job": 114250401821,
      "time": 136,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11675016525"
    },
    {
      "job": 114250856658,
      "time": 71,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11674207072"
    },
    {
      "job": 114250856683,
      "time": 64,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11674866735"
    },
    {
      "job": 114250856690,
      "time": 61,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11674187129"
    },
    {
      "job": 114250856661,
      "time": 53,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11674396758"
    }
  ],
  "_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": 296,
    "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/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-10-10T15:48:52.000Z",
      "distro": "resolute",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/1f7ae8ac3ecfd6e3026347e7c241ebcd5b57dbf933f805986b943667820becaf",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-10T15:48:52.000Z",
      "distro": "resolute",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/fc02fcbe712148a9390c1ef9556604a9ba56f3492f96e50a8f8aa517941f6f1f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-10T16:44:18.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/7963e73fee21744017c179b93c10e526df2351d30a5c8181ac6c864d98bba6c2",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-10T16:45:36.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/8527a7ffd6ceb82c0ab291ca9d6fa031906f0972c7927d9177a1da87c18960e5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-10T15:48:45.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/e8406fad6e8f9d69f38492bc3f97c7bde6e7e036dc20f55fba11ec99422456f7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-10T15:48:22.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/ea1c91c325328d51643cd0064d6aea116207071e32c3f62ea5f4058ec1c8ff56",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-10T15:48:17.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/ce10c45a5c8e55ffb6e9275ee789e970164b9560174db359b7d14474cae61b57",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-10T15:48:13.000Z",
      "commit": "e28e696695b1f8fa0d76295d64704be50c74fdfe",
      "fileid": "https://r2.ropensci.org/85f45b86ce1191448babdfc1f99cc20987be4a931766c4bab85741e42f0199cf",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cmann3/actions/runs/38064852606"
    }
  ]
}