{
  "_id": "6ab221a63d719c1f840894b6",
  "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-09-20 10:06:15 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/69e69b566c3a228bb3b997e64d7144a12b6bf95976d7ff8f7056a878789d65f8",
  "_filesize": 512586,
  "_sha256": "69e69b566c3a228bb3b997e64d7144a12b6bf95976d7ff8f7056a878789d65f8",
  "_expires": "2026-12-29T10:14:04.000Z",
  "_created": "2026-09-20T10:06:15.000Z",
  "_published": "2026-09-22T06:35:18.971Z",
  "_jobs": [
    {
      "job": 106640582291,
      "time": 205,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "10603267431"
    },
    {
      "job": 106640582712,
      "time": 231,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "10603656695"
    },
    {
      "job": 106640582037,
      "time": 175,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10602983500"
    },
    {
      "job": 106640582024,
      "time": 171,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10603332298"
    },
    {
      "job": 106640582434,
      "time": 156,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "10602464652"
    },
    {
      "job": 106640582669,
      "time": 322,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "10603716148"
    },
    {
      "job": 106640582282,
      "time": 113,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10603287283"
    },
    {
      "job": 106640582152,
      "time": 378,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10603372386"
    },
    {
      "job": 106640581415,
      "time": 307,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10603282011"
    },
    {
      "job": 106640582621,
      "time": 200,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10603082816"
    },
    {
      "job": 106640580946,
      "time": 184,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 106640580916,
      "time": 63,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 106640580875,
      "time": 57,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 106640580873,
      "time": 162,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 106640580954,
      "time": 63,
      "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/35503910737",
  "_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": 10
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/contractr"
  },
  "_devurl": "https://github.com/prl-prg/contractr",
  "_searchresults": 7,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/contractr.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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",
    "rdtools",
    "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-09-20T10:10:23.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/f90a245bc19da37fa4705a58f1ec3e3852df83d49e33da8dc9a9ac36c03995d4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-09-20T10:10:44.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/68255bed1b83062523157426772a826d12f111be50ea305ff2ae959a57c3209f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-09-20T10:09:55.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/34e33466c0cbc45831929c1f8d9c96e404ab3a6ceb4db7a1d8eb8199bbe07759",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-09-20T10:09:52.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/83f9c730f7d4ed7fb13843c630ab75e9ed49cccc703ff0f0c436e0e297facd83",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-09-20T10:09:29.000Z",
      "arch": "aarch64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/075401eda781080f7c62364c97d7ebdf5e11fde9aed5c5045f9a073521aa0f23",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-09-20T10:11:39.000Z",
      "arch": "x86_64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/ac84b06de2e3b1b2223881ba3061c77fa25be1d8978c33c6be615efad5df6f5d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-09-20T10:08:54.000Z",
      "arch": "aarch64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/a8b69d5693dc6125d9e5d0bafe581bbb3f60871a0af53fedfedf4166f0fb3271",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-09-20T10:12:30.000Z",
      "arch": "x86_64",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/f07b2bde4b05f14a50b6e5c0fc2ba16b11cb19659e7f30ac50044b0a85fc48a7",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-09-20T10:10:25.000Z",
      "arch": "emscripten",
      "commit": "670b4d89c340d8fa8eaccef64603acc457ae87e7",
      "fileid": "https://r2.ropensci.org/21197914de487a405c8371f18d9eded9f0ef7ad8e8cc9c6e70002076d441fda3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/prl-prg/actions/runs/35503910737"
    }
  ]
}