{
  "_id": "6a1efec0b401979e7341a802",
  "Package": "pref",
  "Title": "Preference Voting with Explanatory Graphics",
  "Version": "0.4.0",
  "Authors@R": "person(\"Denis\", \"Mollison\", , \"denis.mollison@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-4014-3431\"))",
  "Description": "Implements the Single Transferable Vote (STV) electoral\nsystem, with clear explanatory graphics. The core function\nstv() uses Meek's method, the purest expression of the simple\nprinciples of STV, but which requires electronic counting. It\ncan handle votes expressing equal preferences for subsets of\nthe candidates. A function stv.wig() implementing the Weighted\nInclusive Gregory method, as used in Scottish council\nelections, is also provided, and with the same options, as\ndescribed in the manual. The required vote data format is as an\nR list: a function pref.data() is provided to transform some\ncommonly used data formats into this format. References for\nmethodology: Hill, Wichmann and Woodall (1987)\n<doi:10.1093/comjnl/30.3.277>, Hill, David (2006)\n<https://www.votingmatters.org.uk/ISSUE22/I22P2.pdf>, Mollison,\nDenis (2023) <arXiv:2303.15310>, (see also the package manual\npref_pkg_manual.pdf).",
  "URL": "https://github.com/denismollison/pref",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "LazyData": "true",
  "BugReports": "https://github.com/denismollison/pref/issues",
  "Config/pak/sysreqs": "libjpeg-dev",
  "Repository": "https://denismollison.r-universe.dev",
  "Date/Publication": "2024-02-23 23:03:42 UTC",
  "RemoteUrl": "https://github.com/denismollison/pref",
  "RemoteRef": "HEAD",
  "RemoteSha": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-18 09:29:22 UTC",
    "User": "root"
  },
  "Author": "Denis Mollison [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-4014-3431>)",
  "Maintainer": "Denis Mollison <denis.mollison@gmail.com>",
  "MD5sum": "9c264e8501be1fb637bd6f92f384a23b",
  "_user": "denismollison",
  "_type": "src",
  "_file": "pref_0.4.0.tar.gz",
  "_fileid": "ee9cc4578a919de8e74f22141d12a02b43866b7507a76899352fed804181a6c5",
  "_filesize": 173083,
  "_sha256": "ee9cc4578a919de8e74f22141d12a02b43866b7507a76899352fed804181a6c5",
  "_created": "2026-05-18T09:29:22.000Z",
  "_published": "2026-06-02T16:03:12.795Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79115581432,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7054212455"
    },
    {
      "job": 79115581178,
      "time": 134,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054217270"
    },
    {
      "job": 79115581498,
      "time": 162,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7054217099"
    },
    {
      "job": 79115580958,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054211010"
    },
    {
      "job": 79115580692,
      "time": 135,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054168030"
    },
    {
      "job": 79115580168,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7363148056"
    },
    {
      "job": 79115581195,
      "time": 76,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7054197111"
    },
    {
      "job": 79115581775,
      "time": 69,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7054194007"
    },
    {
      "job": 79115581481,
      "time": 70,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7054194417"
    }
  ],
  "_buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/denismollison/pref",
  "_commit": {
    "id": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
    "author": "Denis Mollison <denis.mollison@gmail.com>",
    "committer": "Denis Mollison <denis.mollison@gmail.com>",
    "message": "Editing internal transfer function\n",
    "time": 1708729422
  },
  "_maintainer": {
    "name": "Denis Mollison",
    "email": "denis.mollison@gmail.com",
    "login": "denismollison",
    "description": "",
    "uuid": 65805812,
    "orcid": "0000-0002-4014-3431"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "base",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "jpeg",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    }
  ],
  "_owner": "denismollison",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "denismollison",
      "count": 83,
      "uuid": 65805812
    }
  ],
  "_userbio": {
    "uuid": 65805812,
    "type": "user",
    "name": "Denis Mollison"
  },
  "_downloads": {
    "count": 175,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/pref"
  },
  "_devurl": "https://github.com/denismollison/pref",
  "_searchresults": 3,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/pref.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/denismollison/pref",
  "_realowner": "denismollison",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.0",
      "date": "2024-02-02"
    }
  ],
  "_exports": [
    "pref.data",
    "stv",
    "stv.plots",
    "stv.wig"
  ],
  "_datasets": [
    {
      "name": "c99",
      "title": "Example of an election of an academic organisation using STV allowing equal preferences frelection om an",
      "object": "c99",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "cnc17",
      "title": "Example of a political STV election - Cumnock and New Cumnock 2017",
      "object": "cnc17",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "hc12",
      "title": "Unusually simple example of a political STV election - Helensburgh Central 2012",
      "object": "hc12",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "j02",
      "title": "Example of an STV election allowing equal preferences - John Muir Trust 2002",
      "object": "j02",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "nws17",
      "title": "Example of a political STV election - North West and Central Sutherland 2017 Unusual in that under WIG no candidate reaches the (fixed) quota",
      "object": "nws17",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "p17",
      "title": "Example of a political STV election - Partick 2017",
      "object": "p17",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "y12",
      "title": "Example of an STV election - Yale faculty election (last 12)",
      "object": "y12",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "c99",
      "title": "Example of an election of an academic organisation using STV allowing equal preferences frelection om an",
      "topics": [
        "c99"
      ]
    },
    {
      "page": "cnc17",
      "title": "Example of a political STV election - Cumnock and New Cumnock 2017",
      "topics": [
        "cnc17"
      ]
    },
    {
      "page": "hc12",
      "title": "Unusually simple example of a political STV election - Helensburgh Central 2012",
      "topics": [
        "hc12"
      ]
    },
    {
      "page": "j02",
      "title": "Example of an STV election allowing equal preferences - John Muir Trust 2002",
      "topics": [
        "j02"
      ]
    },
    {
      "page": "nws17",
      "title": "Example of a political STV election - North West and Central Sutherland 2017 Unusual in that under WIG no candidate reaches the (fixed) quota",
      "topics": [
        "nws17"
      ]
    },
    {
      "page": "p17",
      "title": "Example of a political STV election - Partick 2017",
      "topics": [
        "p17"
      ]
    },
    {
      "page": "pref.data",
      "title": "put election data in an R file (.rda)",
      "topics": [
        "pref.data"
      ]
    },
    {
      "page": "stv",
      "title": "STV election count - uses Meek STV, allows equal preferences",
      "topics": [
        "stv"
      ]
    },
    {
      "page": "stv.plots",
      "title": "Makes webpage plots of result of an STV election",
      "topics": [
        "stv.plots"
      ]
    },
    {
      "page": "stv.wig",
      "title": "STV election count using WIG as for Scottish Council elections calculated to 5 places of decimals as used for those elections",
      "topics": [
        "stv.wig"
      ]
    },
    {
      "page": "y12",
      "title": "Example of an STV election - Yale faculty election (last 12)",
      "topics": [
        "y12"
      ]
    }
  ],
  "_readme": "https://github.com/denismollison/pref/raw/HEAD/README.md",
  "_rundeps": [
    "jpeg"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "pref",
  "_universes": [
    "denismollison"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-18T09:31:25.000Z",
      "distro": "noble",
      "commit": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
      "fileid": "c186fcd258aab64e5a20c46c2edae5cee86e54a04bc5fb63605b469db75ab788",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-18T09:31:38.000Z",
      "distro": "noble",
      "commit": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
      "fileid": "976c65dd81fa09dc577514c78bfacb999f912b0022c6c586ebe497606920d4c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-18T09:31:41.000Z",
      "commit": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
      "fileid": "2b58dbe05b7f9464718d488ad8caeaa0451f78be0bcb3a4bd9b644dadb47af10",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-18T09:31:22.000Z",
      "commit": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
      "fileid": "02f48ddcd2f71ba9769844f8494c1bfad5e474e72fee183a5f1a5aaa666abaee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-18T09:30:32.000Z",
      "commit": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
      "fileid": "94d7ed5e3583ecf33cfdc1a1919102bf1992ae67e1b35c907496c9f0c86d7933",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-18T09:30:26.000Z",
      "commit": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
      "fileid": "33ea770c79874a9c80e6cb5ce60d6508ae8966465e2f92d63a957f2a2cd88fff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-18T09:30:26.000Z",
      "commit": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
      "fileid": "95dd62191ee0cf9016564278c6f09b715d39dacc04d376bd8fb07ec64744df95",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-06-02T16:02:57.000Z",
      "commit": "9c1664f41068a433fef2fb2ad0d0e4b94bdb5699",
      "fileid": "9575684f36fc6b23d7d8e79654ad7dfa0fce7ad6af90527a168f3c7b5284c2d4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/denismollison/actions/runs/26025006944"
    }
  ]
}