
pewdata is an R package that provides reproducible, programmatic access to survey datasets from the Pew Research Center.
To install:
install.packages("pewdata")
if (!require(remotes)) install.packages("remotes")
# remotes::install_github("fsolt/pewdata")
install.packages("pewdata", repos = c('https://fsolt.r-universe.dev', 'https://cloud.r-project.org'))
Note that pewdata depends on the Chrome Dev browser; if you don't already have it installed on your machine, get it here.
pewdata also depends on having a working installation of rJava. Helpful hints for Mac users and for Windows users.
For more details, check out the vignette.