Reproducible Data Retrieval from the ICPSR Archive

Reproducible, programmatic retrieval of datasets from the Inter-university Consortium for Political and Social Research archive.


icpsrdata is an R package that provides reproducible, programmatic access to datasets stored in the Inter-university Consortium for Political and Social Research archive.

To install:

  • the latest released version: install.packages("icpsrdata")
  • the latest development version:
if (!require(ghit)) install.packages("ghit")
ghit::install_github("fsolt/icpsrdata")

For more details, check out the vignette.

News

  1. User-facing revisions
    • Allows, if the needed login information has not been saved in the user's .Rprofile, for this information to be entered interactively; the information is then saved for the duration of the current session
    • Permits users to reset any login information saved for the current session by switching the argument reset to TRUE
    • No longer depends on the Firefox browser
  2. Internal revisions
    • Uses rvest rather than RSelenium to navigate the ICPSR download process
    • Uses purrr::walk rather than a for loop to iterate over multiple file requests

Allows nested directories to be automatically created if necessary when specified using the download_dir argument

First release.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("icpsrdata")

0.3.0 by Frederick Solt, 7 months ago


Browse source code at https://github.com/cran/icpsrdata


Authors: Frederick Solt [aut, cre], Kellen Gracey [aut], Eric Persson [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports purrr, rvest, httr

Suggests knitr, rmarkdown


See at CRAN