Skip to content

peacesciencer

1.2.0Package record

Tools and Data for Quantitative Peace Science Research

0packages dependsuggested by 5
6.9Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

These are useful tools and data sets for the study of quantitative peace science. The goal for this package is to include tools and data sets for doing original research that mimics well what a user would have to previously get from a software package that may not be well-sourced or well-supported. Those software bundles were useful the extent to which they encourage replications of long-standing analyses by starting the data-generating process from scratch. However, a lot of the functionality can be done relatively quickly and more transparently in the R programming language.

Changes in 1.2.0

Changes include:

  • Package now assumes a version of R greater than 4.1.0. {isard} introduced as dependency.
  • add_cow_alliance() is deprecated and slated for removal at the request of the data set's maintainer. The function right now returns a stop communicating this information, also at the request of the data set's maintainer.
  • add_sdp_gdp() is deprecated and slated for removal. Its functionality is replaced by add_sim_gdp_pop().
  • add_gml_mids() is superseded in light of the release of the MIC data.
  • add_cow_mids() is superseded.
  • cow_alliance, ccode_democracy, gwcode_democracy, cow_sdp_gdp, gw_sdp_gdp, cow_gw_years, and gw_cow_years are deprecated and slated for removal.
  • Fix error in cow_capitals data that did not adequately record Burundi's capital change in 2018. This concerns the data generated for cow_capitals.
  • Fix error in tss_rivalries for tssr_id = 61. This was in the book but the change in the data-raw directory shows what they assuredly meant.
  • Add mry argument to add_cow_majors(), fix bug identified by @rochelleterman in 17
  • Fix issue of imputing 0s outside temporal domain of contiguity data for add_contiguity(). Brought to my attention by @jandresgannon in 19.
  • atop_alliance updated to version 5.1.
Show all changes in 1.2.0Hide the rest of the changes in 1.2.0
  • add_atop_alliance has an extra argument (ndir) for how it should perform on non-directed dyad-year or leader-dyad-year data.
  • cow_capitals and gw_capitals formally current through 2024. Indonesia is the most likely candidate to require an update in these data, though that change has not happened yet. cow_capitals and gw_capitals further include some corrections and the introduction of start and end dates for capitals.
  • gw_ddy and cow_ddy current through 2024.
  • add_ccode_to_gw() and add_gwcode_to_cow() now lean on data in {isard}.
  • add_capital_distance() includes an argument ("transsum") for what observation to privilege for yearly summaries in which there was a capital transition. Support for leader-level data momentarily dropped.
  • cow_contdir replaces columns begin and end with stdate and enddate communicating the same information, but in date form.
  • add_contiguity() has an argument ("slice") that determines its behavior for when there is a change in a contiguity relationship in a given year. The mry argument actually does something now.
  • ccode_democracy and gwcode_democracy are deprecated and slated for removal. Democracy data are now maintained in the {isard} package.
  • add_democracy() now leans on {isard} for democracy data.
  • add_democracy() and add_nmc() have a keep argument now, allowing the user to select particular estimates from the democracy/capabilities data rather than get everything (including stuff they don't want).
  • add_strategic_rivalries() uses tss_rivalries now and no longer has additional arguments prioritizing rivalry type.
  • add_minimum_distance() optionally (and by default) incorporates extended data available in download_extdata().
  • The "create" functions lean on the state system data maintained in {isard}. This also means micro-states in the G-W system are included.
  • false_gw_dyads now includes information about whether the first or second state is/was a micro-state. Two directed entries for Sao Tome and Principe and the Republic of Vietnam were added as well.
  • Shortcuts added: add_cap_dist() for add_capital_distance(), add_creg_frac() for add_creg_fractionalization(), add_min_dist() for add_minimum_distance().
  • ucdp_acd updated to 25.1. add_ucdp_acd() incorporates these newer versions of the data to allow for armed conflict analyses through 2024.

Additions include:

  • archigossums is a basic yearly summary of leader turnover in the archigos data. It will make add_archigos() much faster by cutting down on computation time.
  • add_sim_gdp_pop() replaces add_sdp_gdp(), using data from {isard}
  • terrthreat is a state-year data set on latent territorial threat. add_latent_territorial_threat() will add it to your data frames.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
  • ERROR11 OK, 1 ERROR2026-04-25
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 708 wordsVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 1.2.0Citation fileYes · cites a publication
Help pages
94 (1 internal)
Examples that run
29%14 run in a plain check · 29 only when donttest examples are enabled (R CMD check --as-cran) · 5 never run
Exported functions with examples
100%
Documented parameters
not tracked
Return-value docs
not tracked
Help pages citing references
82%

Downloads

6.9K
CRAN downloads in the past year
Rank #4,992 · ~19/day · ~572/mo
Daily download trend is not available in this view yet.
77530 days
1.7K90 days
6.9K1 year
Compare downloads with other packages →
Also on118 r2u4 autocran

Repository

35Stars
5Forks
3Open issues
0Open PRs
4Releases
491Commits
1Commit identities
peace-sciencereugene
License file reads as GPL-2.0 · 491 commits · Last activity 2026-07-01 · 0% stars, 30d · Default branch at 1.2.9, ahead of CRAN 1.2.0 (checked 2026-10-21) · Discussions: 3 posts
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
4
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2025-08-09 · 322026-07-07 · 35
PracticesBeta

7 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/svmiller/peacesciencer on 2026-10-21.

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-07-01

Reproducibility and dev environment (2)
data-raw/Makefile
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing peacesciencer adds 82 packages (44 with compiled code, 65 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, bslib 5.6 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 5
Suggests, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2020)
Releases (10)

Pick two releases to compare their code metrics.

Show 1 earlier eventHide 1 earlier event
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-12-19
Total releases
10 / 6 yrs
License
GPL-2 OSI
Minimum R
≥ 4.1.0
Bundled data
3.5 MB / 52 files
Download size
3.7 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("peacesciencer")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1177/07388942221077926.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for peacesciencer version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy