partycoloR
0.2.0Extract Party Colors and Logos from Wikipedia
Overview
Extract political party colors and logos from English Wikipedia party pages. Provides functions to scrape party infoboxes for color codes (HEX or HTML color names) and logo images. Includes integration with the Party Facts database for easy party lookups. Designed for political scientists and party researchers working with electoral and party data. For Party Facts, see Döring and Regel (2019) doi:10.1177/1354068818820671 and Bederke, Döring, and Regel (2023) doi:10.7910/DVN/TJINLQ.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 9%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
Repository practices
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/lwarode/partycolor on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 4.0 median / 12 max
- Test cases
- 32 / 0.55 per code line
Test coverage
Line coverage
44%
Expression
40.2%
Tests / Examples
43.5% / 3% ex
Functions
18 11 exported
Complexity
4.4 avg / 12 max
Call network
18 nodes / 21 edges
Call graph
Open call graph →Lowest coverage
18 functions| Function | Cyclo | Coverage |
|---|---|---|
| get_party_color_by_name exp | 5 | 0% |
| get_party_info_by_name exp | 4 | 0% |
| get_party_logo_by_name exp | 3 | 0% |
| get_partyfacts_wikipedia exp | 4 | 0% |
| extract_colors_from_infobox | 4 | 0% |
| extract_logo_from_infobox | 7 | 0% |
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.2.0Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-01-27
- Total releases
- 1 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 1.0 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet