{
  "_id": "6a619e0bf673e46fff56c6a0",
  "Package": "contractr",
  "Title": "Run-Time Type Contracts for R Functions",
  "Version": "0.0.0.9000",
  "Authors@R": "c(\nperson(given = \"Aviral\",\nfamily = \"Goel\",\nrole = \"aut\",\nemail = \"goel.aviral@gmail.com\"),\nperson(given = \"Filip\",\nfamily = \"Krikava\",\nrole = c(\"aut\", \"cre\"),\nemail = \"krikava@gmail.com\"),\nperson(given = \"Alexi\",\nfamily = \"Turcotte\",\nrole = \"aut\",\nemail = \"alexi.s.f.turcotte@gmail.com\"),\nperson(given = \"Pierre\",\nfamily = \"Donat-Bouillud\",\nrole = \"ctb\",\nemail = \"pierre.donat.bouillud@gmail.com\"))",
  "Description": "Attaches run-time type contracts to R functions. A\nfunction is annotated with a type declaration written in the\n'tastr' type language; contractr injects assertions that check\nthe arguments and the return value against the declared type on\nevery call, signalling a warning or an error (depending on the\nconfigured severity) when a value does not conform.",
  "License": "Apache License (>= 2)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.1.2",
  "Remotes": [
    "PRL-PRG/injectr",
    "PRL-PRG/mutator"
  ],
  "SystemRequirements": "GNU make, flex, bison, C++17",
  "Config/pak/sysreqs": "cmake make libuv1-dev libxml2-dev",
  "Repository": "https://prl-prg.r-universe.dev",
  "Date/Publication": "2026-07-22 11:24:55 UTC",
  "RemoteUrl": "https://github.com/PRL-PRG/contractr",
  "RemoteRef": "HEAD",
  "RemoteSha": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-22 12:23:44 UTC",
    "User": "root"
  },
  "Author": "Aviral Goel [aut],\nFilip Krikava [aut, cre],\nAlexi Turcotte [aut],\nPierre Donat-Bouillud [ctb]",
  "Maintainer": "Filip Krikava <krikava@gmail.com>",
  "_user": "prl-prg",
  "_type": "src",
  "_file": "contractr_0.0.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/b1a15fdecb21aee0e76d0e1f96bc5eb5412e54a319d53298f53a25996a46bb55",
  "_filesize": 512382,
  "_sha256": "b1a15fdecb21aee0e76d0e1f96bc5eb5412e54a319d53298f53a25996a46bb55",
  "_expires": "2026-10-30T12:33:35.000Z",
  "_created": "2026-07-22T12:23:44.000Z",
  "_published": "2026-07-23T04:52:27.925Z",
  "_jobs": [
    {
      "job": 89121086152,
      "time": 181,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "8529367787"
    },
    {
      "job": 89121085777,
      "time": 235,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "8529391859"
    },
    {
      "job": 89121085931,
      "time": 214,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8529382719"
    },
    {
      "job": 89121085863,
      "time": 214,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8529382566"
    },
    {
      "job": 89121085975,
      "time": 133,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "8529346672"
    },
    {
      "job": 89121086048,
      "time": 284,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "8529413797"
    },
    {
      "job": 89121085565,
      "time": 116,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8553039918"
    },
    {
      "job": 89121086131,
      "time": 495,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "8529506973"
    },
    {
      "job": 89121085609,
      "time": 404,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8529284863"
    },
    {
      "job": 89121086043,
      "time": 205,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8529378013"
    },
    {
      "job": 89121085435,
      "time": 64,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 89121085429,
      "time": 54,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 89121085431,
      "time": 62,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "FAIL",
      "artifact": ""
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604",
  "_status": "success",
  "_upstream": "https://github.com/PRL-PRG/contractr",
  "_commit": {
    "id": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
    "author": "Pierre Donat-Bouillud <pierre.donat.bouillud@gmail.com>",
    "committer": "Pierre Donat-Bouillud <pierre.donat.bouillud@gmail.com>",
    "message": "Fix a segfault in minimize_list_of_sigs\n",
    "time": 1784719495
  },
  "_maintainer": {
    "name": "Filip Krikava",
    "email": "krikava@gmail.com",
    "login": "fikovnik",
    "description": "",
    "uuid": 374674
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "roxygen2",
      "role": "Depends"
    },
    {
      "package": "injectr",
      "role": "Imports"
    },
    {
      "package": "roxygen2",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "rlang",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "mutator",
      "role": "Suggests"
    }
  ],
  "_owner": "prl-prg",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-30",
      "n": 16
    }
  ],
  "_tags": [],
  "_topics": [
    "contracts",
    "typechecking",
    "types",
    "cpp"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "aviralg",
      "count": 135,
      "uuid": 4531751
    },
    {
      "user": "fikovnik",
      "count": 21,
      "uuid": 374674
    },
    {
      "user": "programlyrique",
      "count": 16,
      "uuid": 382128
    },
    {
      "user": "reallytg",
      "count": 6,
      "uuid": 8366192
    }
  ],
  "_userbio": {
    "uuid": 22217634,
    "type": "organization",
    "name": "PRL-PRG",
    "followers": 8
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/contractr"
  },
  "_devurl": "https://github.com/prl-prg/contractr",
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/contractr.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "capture_contracts",
    "check_type",
    "clear_contracts",
    "combine_sigs",
    "get_autoinject",
    "get_classes",
    "get_contracts",
    "get_parameter_type",
    "get_severity",
    "get_typed_function_names",
    "get_typed_package_names",
    "has_contract",
    "ignore_contracts",
    "import_type_declarations",
    "infer_type",
    "insert_contract",
    "insert_environment_contract",
    "insert_package_contract",
    "is_class_type",
    "is_function_type",
    "is_function_typed",
    "is_package_typed",
    "is_subtype",
    "is_type_well_formed",
    "minimize_list_of_sigs",
    "minimize_signature",
    "parse_type",
    "remove_contract",
    "set_autoinject",
    "set_severity",
    "set_type_declaration",
    "show_function_type_declaration",
    "show_package_type_declarations",
    "show_type_declarations",
    "sig_distance",
    "type_roclet"
  ],
  "_help": [],
  "_readme": "https://github.com/PRL-PRG/contractr/raw/HEAD/README.md",
  "_rundeps": [
    "brew",
    "callr",
    "cli",
    "commonmark",
    "cpp11",
    "desc",
    "evaluate",
    "fs",
    "glue",
    "highr",
    "injectr",
    "knitr",
    "lifecycle",
    "otel",
    "pkgbuild",
    "pkgload",
    "processx",
    "ps",
    "R6",
    "rlang",
    "roxygen2",
    "rprojroot",
    "withr",
    "xfun",
    "xml2",
    "yaml"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 2.8750612633917,
  "_indexed": true,
  "_nocasepkg": "contractr",
  "_universes": [
    "prl-prg",
    "fikovnik"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-07-22T12:27:30.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/0d305086c7a307295189ca3de6ee3d003e6984f73a79f38e27f45060594aae3f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-07-22T12:28:16.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/d9b4c6ff692996f979dd3cd0b5949d3e83e3a388b8ecd17534126774a81c482f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-07-22T12:28:03.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/16b0a88b78cbea710b82739b983b27751b2e263c1e34ada05bcb6f6f312e1dde",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-07-22T12:27:56.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/6a5680528fa5e2f9daf9e424696ff92d3e7cdf3f07d47acba7de255d5fe78f9b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-07-22T12:26:42.000Z",
      "arch": "aarch64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/84c46a6e47e0f676e890b6dce0d011817d1476514c0073a182a9482e9f70a3fd",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-07-22T12:28:21.000Z",
      "arch": "x86_64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/8ca4f4159f5191cc2e142e2417bd635576448a9bfa380d04d1f8ea74b57fa2c3",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-07-23T04:51:52.000Z",
      "arch": "aarch64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/25714746f85926eefd5b3372748431ede3e07e352fe4d94fbee5de726d10674b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-07-22T12:31:39.000Z",
      "arch": "x86_64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/55babd326d81cc14f9b14a0c19e0ff19d90a698387a37b8798cd981cb8b17670",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-07-22T12:27:58.000Z",
      "arch": "emscripten",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/3ae8ae820e18a6d2f45780500a7cbbe6c476fc927dcf8f5cbc579dc752f8fec9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/29919046604"
    }
  ]
}