Skip to content

Repository files navigation

psreplicate

An R client for the Political Science Replication Index, a searchable, tagged index of replication packages crawled monthly from 34 flagship political science journals' Harvard Dataverse collections.

Installation

# install.packages("pak")
pak::pak("jsakowuah/psreplicate")

Usage

library(psreplicate)

# search by free text, journal, method, data type, and/or year
search_replications(query = "regression discontinuity", journal = "AJPS")
search_replications(method = "Survey Experiment", year = 2020:2024)

# see what's covered
list_journals()

# force a re-download of the index (otherwise it auto-refreshes daily)
refresh_index(force = TRUE)

The index is downloaded once and cached in a per-user cache directory (tools::R_user_dir("psreplicate", "cache")), so repeated calls to search_replications() and list_journals() don't need network access.

About

An R package for the Political Science Replication Index which allows users to search, browse and load replication datasets from 34 political science journals without leaving R.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages