{
  "_id": "6abfb43799f7aa8c6aa597ac",
  "Package": "coalitions",
  "Type": "Package",
  "Title": "Bayesian \"Now-Cast\" Estimation of Event Probabilities in\nMulti-Party Democracies",
  "Version": "0.6.28",
  "Date": "2026-09-08",
  "Authors@R": "c(\nperson(\"Andreas\", \"Bender\", , \"bender.at.R@gmail.com\", role = c(\"aut\", \"cre\"), comment=c(ORCID = \"0000-0001-5628-8611\")),\nperson(\"Alexander\", \"Bauer\", , \"alexander.bauer@stat.uni-muenchen.de\", role=c(\"aut\"), comment=c(ORCID = \"0000-0003-3495-5131\")),\nperson(\"Rebekka\", \"Schade\", , \"rebekka.schade@stablab.stat.uni-muenchen.de\", role=c(\"ctb\")))",
  "Maintainer": "Andreas Bender <bender.at.R@gmail.com>",
  "Description": "An implementation of a Bayesian framework for the opinion\npoll based estimation of event probabilities in multi-party\nelectoral systems (Bender and Bauer (2018)\n<doi:10.21105/joss.00606>).",
  "Encoding": "UTF-8",
  "License": "MIT + file LICENSE",
  "URL": "https://koala-lmu.github.io/coalitions/",
  "BugReports": "https://github.com/KOALA-LMU/coalitions/issues",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev libxml2-dev libssl-dev",
  "Repository": "https://koala-lmu.r-universe.dev",
  "Date/Publication": "2026-10-02 08:55:48 UTC",
  "RemoteUrl": "https://github.com/koala-lmu/coalitions",
  "RemoteRef": "HEAD",
  "RemoteSha": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-02 13:23:45 UTC",
    "User": "root"
  },
  "Author": "Andreas Bender [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-5628-8611>),\nAlexander Bauer [aut] (ORCID: <https://orcid.org/0000-0003-3495-5131>),\nRebekka Schade [ctb]",
  "_user": "koala-lmu",
  "_type": "src",
  "_file": "coalitions_0.6.28.tar.gz",
  "_fileid": "https://r2.ropensci.org/4e0346e3ed4c233da24b09a5fc818f1b530ded0c638d622dbbbb7a2f16c85920",
  "_filesize": 221601,
  "_sha256": "4e0346e3ed4c233da24b09a5fc818f1b530ded0c638d622dbbbb7a2f16c85920",
  "_expires": "2027-01-10T13:40:04.000Z",
  "_created": "2026-10-02T13:23:45.000Z",
  "_published": "2026-10-02T13:40:06.982Z",
  "_jobs": [
    {
      "job": 110856137349,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11227719197"
    },
    {
      "job": 110856137255,
      "time": 160,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11228118689"
    },
    {
      "job": 110856137291,
      "time": 156,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11229410758"
    },
    {
      "job": 110856137364,
      "time": 191,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11228842948"
    },
    {
      "job": 110854597228,
      "time": 253,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11228911329"
    },
    {
      "job": 110856137275,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11228408394"
    },
    {
      "job": 110856137216,
      "time": 71,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11228458609"
    },
    {
      "job": 110856137368,
      "time": 89,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11228154314"
    },
    {
      "job": 110856137227,
      "time": 91,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11228227987"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337",
  "_status": "success",
  "_upstream": "https://github.com/koala-lmu/coalitions",
  "_commit": {
    "id": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
    "author": "Andreas Bender <bender.at.R@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "test: pin scraper value assertions to fixtures instead of live pages (#150)",
    "time": 1790931348
  },
  "_maintainer": {
    "name": "Andreas Bender",
    "email": "bender.at.r@gmail.com",
    "login": "adibender",
    "description": "",
    "uuid": 1672665,
    "orcid": "0000-0001-5628-8611"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.2.1",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "gtools",
      "role": "Imports"
    },
    {
      "package": "rvest",
      "role": "Imports"
    },
    {
      "package": "xml2",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": "> 0.2.2",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": "> 0.5.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    }
  ],
  "_owner": "koala-lmu",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 7
    },
    {
      "week": "2026-23",
      "n": 2
    },
    {
      "week": "2026-37",
      "n": 3
    },
    {
      "week": "2026-40",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.6.26",
      "date": "2026-03-19"
    },
    {
      "name": "v.0.6.27",
      "date": "2026-06-02"
    }
  ],
  "_topics": [
    "coalition-probabilities",
    "election-analysis",
    "elections"
  ],
  "_stars": 22,
  "_contributors": [
    {
      "user": "adibender",
      "count": 388,
      "uuid": 1672665
    },
    {
      "user": "hssnippets",
      "count": 31,
      "uuid": 6241920
    },
    {
      "user": "bauer-alex",
      "count": 13,
      "uuid": 20172676
    },
    {
      "user": "fsolt",
      "count": 4,
      "uuid": 6536645
    },
    {
      "user": "schade-rebekka",
      "count": 2,
      "uuid": 66470616
    },
    {
      "user": "andinatro",
      "count": 1,
      "uuid": 13495926
    },
    {
      "user": "hadley",
      "count": 1,
      "uuid": 4196
    },
    {
      "user": "romainfrancois",
      "count": 1,
      "uuid": 2625526
    }
  ],
  "_userbio": {
    "uuid": 31904705,
    "type": "organization",
    "name": "Coalition Analysis (LMU)",
    "followers": 0,
    "description": "Coalition Analyses developed by the Statistical Consulting Unit (LMU)"
  },
  "_downloads": {
    "count": 504,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/coalitions"
  },
  "_devurl": "https://github.com/koala-lmu/coalitions",
  "_pkgdown": "https://koala-lmu.github.io/coalitions/",
  "_searchresults": 101,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/coalitions.html",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/koala-lmu/coalitions",
  "_realowner": "koala-lmu",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.6.2",
      "date": "2018-03-15"
    },
    {
      "version": "0.6.4",
      "date": "2018-08-27"
    },
    {
      "version": "0.6.5",
      "date": "2018-10-06"
    },
    {
      "version": "0.6.10",
      "date": "2019-07-15"
    },
    {
      "version": "0.6.12",
      "date": "2020-02-06"
    },
    {
      "version": "0.6.15",
      "date": "2020-08-31"
    },
    {
      "version": "0.6.18",
      "date": "2021-03-19"
    },
    {
      "version": "0.6.20",
      "date": "2021-06-30"
    },
    {
      "version": "0.6.23",
      "date": "2022-05-02"
    },
    {
      "version": "0.6.24",
      "date": "2022-08-17"
    },
    {
      "version": "0.6.27",
      "date": "2026-05-08"
    }
  ],
  "_exports": [
    "%>%",
    "as_survey",
    "calculate_prob",
    "calculate_probs",
    "collapse_parties",
    "dHondt",
    "draw_from_posterior",
    "get_entryprobability",
    "get_latest",
    "get_meta",
    "get_probabilities",
    "get_seats",
    "get_surveys",
    "get_surveys_brb",
    "get_surveys_by",
    "get_surveys_nds",
    "get_surveys_rp",
    "get_surveys_saxony",
    "get_surveys_thuringen",
    "gg_survey",
    "hare_niemeyer",
    "have_majority",
    "pool_surveys",
    "prettify_de",
    "prettify_en",
    "prettify_strings",
    "redistribute",
    "scrape_by",
    "scrape_ltw",
    "scrape_rp",
    "scrape_wahlrecht",
    "sls"
  ],
  "_datasets": [
    {
      "name": "party_colors_de",
      "title": "Colors for German parties",
      "object": "party_colors_de",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "party_labels_de",
      "title": "Labels for German parties",
      "object": "party_labels_de",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "surveys_sample",
      "title": "Sample of selected surveys",
      "object": "surveys_sample",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "pollster",
        "surveys"
      ],
      "rows": 3,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calculate_prob",
      "title": "Calculate coalition probability from majority table",
      "topics": [
        "calculate_prob"
      ]
    },
    {
      "page": "calculate_probs",
      "title": "Calculate coalition probabilities for multiple coalitions",
      "topics": [
        "calculate_probs"
      ]
    },
    {
      "page": "collapse_parties",
      "title": "Transform surveys in long format",
      "topics": [
        "collapse_parties"
      ]
    },
    {
      "page": "dHondt",
      "title": "Seat Distribution by D'Hondt",
      "topics": [
        "dHondt"
      ]
    },
    {
      "page": "draw_from_posterior",
      "title": "Draw random numbers from posterior distribution",
      "topics": [
        "draw_from_posterior"
      ]
    },
    {
      "page": "get_probabilities",
      "title": "Wrapper for calculation of coalition probabilities from survey",
      "topics": [
        "get_probabilities"
      ]
    },
    {
      "page": "get_seats",
      "title": "Calculate seat distribution from draws from posterior",
      "topics": [
        "get_seats"
      ]
    },
    {
      "page": "get_surveys",
      "title": "Scrape surveys from all pollsters",
      "topics": [
        "get_latest",
        "get_surveys",
        "get_surveys_brb",
        "get_surveys_by",
        "get_surveys_nds",
        "get_surveys_rp",
        "get_surveys_saxony",
        "get_surveys_thuringen"
      ]
    },
    {
      "page": "gg_survey",
      "title": "Plot voter shares observed in one survey",
      "topics": [
        "gg_survey"
      ]
    },
    {
      "page": "hare_niemeyer",
      "title": "Seat Distribution by Hare/Niemeyer",
      "topics": [
        "hare_niemeyer"
      ]
    },
    {
      "page": "have_majority",
      "title": "Do coalitions have a majority",
      "topics": [
        "have_majority"
      ]
    },
    {
      "page": "party_colors_de",
      "title": "Colors for German parties",
      "topics": [
        "party_colors_de"
      ]
    },
    {
      "page": "party_labels_de",
      "title": "Labels for German parties",
      "topics": [
        "party_labels_de"
      ]
    },
    {
      "page": "pool_surveys",
      "title": "Obtain pooled survey during specified period",
      "topics": [
        "pool_surveys"
      ]
    },
    {
      "page": "redistribute",
      "title": "Calculate percentage of votes/seats after excluding parties with 'votes < hurdle'",
      "topics": [
        "redistribute"
      ]
    },
    {
      "page": "scrape",
      "title": "Scrape surveys for German general election",
      "topics": [
        "scrape_by",
        "scrape_ltw",
        "scrape_rp",
        "scrape_wahlrecht"
      ]
    },
    {
      "page": "sls",
      "title": "Seat Distribution by Sainte-Lague/Schepers",
      "topics": [
        "sls"
      ]
    },
    {
      "page": "surveys_sample",
      "title": "Sample of selected surveys",
      "topics": [
        "surveys_sample"
      ]
    },
    {
      "page": "try_readHTML",
      "title": "Try call of read_html that throws an error if the url cannot be resolved",
      "topics": [
        "try_readHTML"
      ]
    }
  ],
  "_pkglogo": "https://github.com/koala-lmu/coalitions/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/koala-lmu/coalitions/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "backports",
    "checkmate",
    "cli",
    "cpp11",
    "curl",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "gtools",
    "httr",
    "isoband",
    "jsonlite",
    "labeling",
    "lifecycle",
    "lubridate",
    "magrittr",
    "mime",
    "openssl",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "rvest",
    "S7",
    "scales",
    "selectr",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xml2"
  ],
  "_score": 6.589782103291143,
  "_indexed": true,
  "_nocasepkg": "coalitions",
  "_universes": [
    "koala-lmu",
    "adibender"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.28",
      "date": "2026-10-02T13:26:08.000Z",
      "distro": "resolute",
      "commit": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
      "fileid": "https://r2.ropensci.org/fb5fb01656bc02644cfbbd47a09bd5860520cff908c73b80a04eeaf2c6eacf93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6.28",
      "date": "2026-10-02T13:26:11.000Z",
      "distro": "resolute",
      "commit": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
      "fileid": "https://r2.ropensci.org/ddca120f96efed584657dfaf2c9f454ef8513262729e94fade818f93a4f832a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.28",
      "date": "2026-10-02T13:38:52.000Z",
      "commit": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
      "fileid": "https://r2.ropensci.org/eb9851408cdee4171e413a357fa419c3a421adeb983041cb7191405458da2d39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6.28",
      "date": "2026-10-02T13:35:36.000Z",
      "commit": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
      "fileid": "https://r2.ropensci.org/4cbd2774607e1d0f6315b0edc92cb8b0bb9fd697e7dd75106d499eefdcb972f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.28",
      "date": "2026-10-02T13:25:58.000Z",
      "commit": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
      "fileid": "https://r2.ropensci.org/5d4e216c90d2544d5c5c226a810c38b2a6231f2f973f1eebb2af161165757d90",
      "status": "success",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.28",
      "date": "2026-10-02T13:24:48.000Z",
      "commit": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
      "fileid": "https://r2.ropensci.org/ead95097d848e6d0b4ec8adfa39d88dd3524bfca40c7df6bd9125236ab691ced",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.28",
      "date": "2026-10-02T13:24:54.000Z",
      "commit": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
      "fileid": "https://r2.ropensci.org/b3604e602122b1867416c67f8813ac22ad6555741c85d4d860657416ed0b6084",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.6.28",
      "date": "2026-10-02T13:24:58.000Z",
      "commit": "8761fc0c4aca063664afe9be1960df3e53cd40d1",
      "fileid": "https://r2.ropensci.org/dc93054bd668893d2b6c8e54b3f16024cb7d202389f4022d502182532fe9720b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/koala-lmu/actions/runs/37012239337"
    }
  ]
}