Skip to content

partycoloR

0.2.0

Extract Party Colors and Logos from Wikipedia

0packages depend
1.3Kdownloads / year
43.5%test coverage
13/13checks pass

Overview

About
Maintained by Lukas WarodeFirst published 2026-01-271 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.55
43.5%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 259 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
9%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

1.3K
CRAN downloads in the past year
Rank #20,237 · ~4/day · ~107/mo
Daily download trend is not available in this view yet.
22130 days
59790 days
1.3K1 year
Compare downloads with other packages →
Also on38 r2u26 autocran

Repository

Repository
6Stars
1Forks
0Open issues
0Open PRs
1Releases
41Commits
1Contributors
41 commits · Last activity 2026-02-16 · 0% stars, 30d

Stars over time

2022-02-16 · 32026-07-07 · 6

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,239 (62%)Rd 450 (22%)Vignettes 313 (16%)
Code characteristics
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

Loading call graph…

Lowest coverage

18 functions
FunctionCycloCoverage
get_party_color_by_name exp50%
get_party_info_by_name exp40%
get_party_logo_by_name exp30%
get_partyfacts_wikipedia exp40%
extract_colors_from_infobox40%
extract_logo_from_infobox70%

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.0Latest
    2026-03-10 · current release
  • R
    R 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
Report a problem with this page →