{
  "_id": "6ace01c7a14063b82c3ae5fe",
  "Package": "blocs",
  "Type": "Package",
  "Title": "Estimate and Visualize Voting Blocs' Partisan Contributions",
  "Version": "0.1.1.9000",
  "Authors@R": "c(\nperson(\"Justin\", \"Grimmer\",\nemail = \"jgrimmer@stanford.edu\",\nrole = \"aut\"\n),\nperson(\"Will\", \"Marble\",\nemail = \"wmarble@princeton.edu\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0001-9352-5540\")\n),\nperson(\"Cole\", \"Tanigawa-Lau\",\nemail = \"coletl@stanford.edu\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-8656-571X\")\n)\n)",
  "Maintainer": "Cole Tanigawa-Lau <coletl@stanford.edu>",
  "Description": "Functions to combine data on voting blocs' size, turnout,\nand vote choice to estimate each bloc's vote contributions to\nthe Democratic and Republican parties. The package also\nincludes functions for uncertainty estimation and plotting.\nUsers may define voting blocs along a discrete or continuous\nvariable. The package implements methods described in Grimmer,\nMarble, and Tanigawa-Lau (2022) <doi:10.31235/osf.io/c9fkg>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.2.0",
  "URL": "https://coletl.github.io/blocs/",
  "Repository": "https://coletl.r-universe.dev",
  "Date/Publication": "2023-10-22 21:45:33 UTC",
  "RemoteUrl": "https://github.com/coletl/blocs",
  "RemoteRef": "HEAD",
  "RemoteSha": "e21463829c7c8ce5efb01918bd9297e4618411f0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-13 09:57:54 UTC",
    "User": "root"
  },
  "Author": "Justin Grimmer [aut],\nWill Marble [aut] (ORCID: <https://orcid.org/0000-0001-9352-5540>),\nCole Tanigawa-Lau [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-8656-571X>)",
  "_user": "coletl",
  "_type": "src",
  "_file": "blocs_0.1.1.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/0fcd5bba865b57f91441c7378ae853703b058f1169c27d7f37e90fbb44801902",
  "_filesize": 409565,
  "_sha256": "0fcd5bba865b57f91441c7378ae853703b058f1169c27d7f37e90fbb44801902",
  "_expires": "2027-01-21T10:02:45.000Z",
  "_created": "2026-10-13T09:57:54.000Z",
  "_published": "2026-10-13T10:02:47.043Z",
  "_buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115238126929,
      "time": 198,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11802697977"
    },
    {
      "job": 115238126801,
      "time": 215,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11803262931"
    },
    {
      "job": 115238126998,
      "time": 211,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11803446296"
    },
    {
      "job": 115238126842,
      "time": 202,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11803267753"
    },
    {
      "job": 115236643716,
      "time": 226,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11802997223"
    },
    {
      "job": 115238126793,
      "time": 142,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11803312377"
    },
    {
      "job": 115238127106,
      "time": 183,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11802139967"
    },
    {
      "job": 115238126954,
      "time": 145,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11802612919"
    },
    {
      "job": 115238126878,
      "time": 143,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11803247633"
    }
  ],
  "_upstream": "https://github.com/coletl/blocs",
  "_commit": {
    "id": "e21463829c7c8ce5efb01918bd9297e4618411f0",
    "author": "Cole Tanigawa-Lau <ctanigawa-lau@aclu.org>",
    "committer": "Cole Tanigawa-Lau <ctanigawa-lau@aclu.org>",
    "message": "Create package website\n",
    "time": 1698011133
  },
  "_maintainer": {
    "name": "Cole Tanigawa-Lau",
    "email": "coletl@stanford.edu",
    "login": "coletl",
    "description": "Post-doc in Political Science studying U.S. politics and political methodology.",
    "uuid": 25174518,
    "orcid": "0000-0002-8656-571X"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "collapse",
      "version": ">= 1.7.6",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.6",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.2.0",
      "role": "Imports"
    },
    {
      "package": "ks",
      "version": ">= 1.13.4",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "version": ">= 1.8.39",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "devtools",
      "version": ">= 2.4.3",
      "role": "Suggests"
    },
    {
      "package": "questionr",
      "version": ">= 0.7.7",
      "role": "Suggests"
    },
    {
      "package": "reldist",
      "version": ">= 1.7.0",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.3",
      "role": "Suggests"
    }
  ],
  "_owner": "coletl",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "coletl",
      "count": 99,
      "uuid": 25174518
    }
  ],
  "_userbio": {
    "uuid": 25174518,
    "type": "user",
    "name": "Cole Tanigawa-Lau",
    "followers": 6,
    "description": "Post-doc in Political Science studying U.S. politics and political methodology."
  },
  "_downloads": {
    "count": 330,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/blocs"
  },
  "_devurl": "https://github.com/coletl/blocs",
  "_pkgdown": "https://coletl.github.io/blocs/",
  "_searchresults": 10,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/blocs.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/coletl/blocs",
  "_realowner": "coletl",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2022-11-23"
    },
    {
      "version": "0.1.1",
      "date": "2023-04-02"
    }
  ],
  "_exports": [
    "vb_continuous",
    "vb_difference",
    "vb_discrete",
    "vb_plot",
    "vb_summary",
    "vb_uncertainty",
    "vbdf",
    "wtd_table"
  ],
  "_datasets": [
    {
      "name": "anes",
      "title": "Sample of 2020 ANES cumulative data file",
      "object": "anes",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "year",
        "respid",
        "weight",
        "race",
        "gender",
        "educ",
        "age",
        "vote_pres",
        "voted",
        "vote_pres_dem",
        "vote_pres_rep",
        "vote_pres3"
      ],
      "rows": 46838,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "anes",
      "title": "Sample of 2020 ANES cumulative data file",
      "topics": [
        "anes"
      ]
    },
    {
      "page": "check_vbdf",
      "title": "Validator for class vbdf",
      "topics": [
        "check_vbdf"
      ]
    },
    {
      "page": "estimate_density",
      "title": "Estimate density",
      "topics": [
        "estimate_density"
      ]
    },
    {
      "page": "new_vbdf",
      "title": "Constructor for class vbdf",
      "topics": [
        "new_vbdf"
      ]
    },
    {
      "page": "new_vbsum",
      "title": "Constructor for vbdf summaries",
      "topics": [
        "new_vbsum"
      ]
    },
    {
      "page": "vb_continuous",
      "title": "Continuous voting bloc analysis",
      "topics": [
        "vb_continuous"
      ]
    },
    {
      "page": "vb_difference",
      "title": "Calculate differences in bloc contributions",
      "topics": [
        "vb_difference"
      ]
    },
    {
      "page": "vb_discrete",
      "title": "Discrete voting bloc analysis",
      "topics": [
        "vb_discrete"
      ]
    },
    {
      "page": "vb_plot",
      "title": "Plot the summary of a voting bloc analysis",
      "topics": [
        "vb_plot"
      ]
    },
    {
      "page": "vb_summary",
      "title": "Summarize uncertainty for a vbdf objects",
      "topics": [
        "vb_summary",
        "vb_uncertainty"
      ]
    },
    {
      "page": "vbdf",
      "title": "Create a vbdf object",
      "topics": [
        "vbdf"
      ]
    },
    {
      "page": "wtd_table",
      "title": "Weighted frequency table or proportions",
      "topics": [
        "wtd_table"
      ]
    }
  ],
  "_readme": "https://github.com/coletl/blocs/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "collapse",
    "cpp11",
    "dplyr",
    "farver",
    "FNN",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "kernlab",
    "KernSmooth",
    "ks",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "mclust",
    "mgcv",
    "multicool",
    "mvtnorm",
    "nlme",
    "pillar",
    "pkgconfig",
    "pracma",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "blocs",
  "_universes": [
    "coletl"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-10-13T10:00:41.000Z",
      "distro": "resolute",
      "commit": "e21463829c7c8ce5efb01918bd9297e4618411f0",
      "fileid": "https://r2.ropensci.org/415abaa318f59abab6a555bc1384a484695a705426475edffb0ac843a18011b1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-10-13T10:01:01.000Z",
      "distro": "resolute",
      "commit": "e21463829c7c8ce5efb01918bd9297e4618411f0",
      "fileid": "https://r2.ropensci.org/cf1fdadb590b22dd97ab77a7173bb5587747439b20c547337b630de516668d3a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-10-13T10:01:08.000Z",
      "commit": "e21463829c7c8ce5efb01918bd9297e4618411f0",
      "fileid": "https://r2.ropensci.org/d25221385fbe820984f0444449987ad71c9560b556e6e81a2be52f127ecd04b4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-10-13T10:00:48.000Z",
      "commit": "e21463829c7c8ce5efb01918bd9297e4618411f0",
      "fileid": "https://r2.ropensci.org/fb30ae4f7ff3a669bcf676e221c127de537649deafe00297b60e5f86e2ebe6de",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1.9000",
      "date": "2026-10-13T10:00:36.000Z",
      "commit": "e21463829c7c8ce5efb01918bd9297e4618411f0",
      "fileid": "https://r2.ropensci.org/9fda7c6f496177ef6efa12620e6dea7810fd8beaabdf21d1ec287898225b0399",
      "status": "success",
      "buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-10-13T10:00:31.000Z",
      "commit": "e21463829c7c8ce5efb01918bd9297e4618411f0",
      "fileid": "https://r2.ropensci.org/1088f56f72be81887ccafdd7399baafb2bbf303bb603a08bbdfd7c98ec764a3c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:59:43.000Z",
      "commit": "e21463829c7c8ce5efb01918bd9297e4618411f0",
      "fileid": "https://r2.ropensci.org/1898cdefb7d0ae1f324d67877648984479f95bf1ad27988fb994d9bb40183cd3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-10-13T09:59:39.000Z",
      "commit": "e21463829c7c8ce5efb01918bd9297e4618411f0",
      "fileid": "https://r2.ropensci.org/b13ca02e02922620371d6d231dfb2d9f5fc8b0ed1067cf3a345a9cf268ca8e6b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/coletl/actions/runs/38379619678"
    }
  ]
}