install.packages("epiverse", repos = c("https://economic.r-universe.dev", getOption("repos")))EPI packages for R
- now you can load all of EPI’s R packages in one go!
epiverseincludes the libraries you know and love (realtalk, epidatatools, and epiextractr), as well as two hot new packages!prefab is an opinionated theme system for R project scaffolding
swadlr allows users to pull and manipulate data from the State of Working America Data Library
- realtalk makes it easy to load and use common US price indexes in R.
- epidatatools contains functions we find useful at EPI that don’t have exact analogues elsewhere in the R package ecosystem.
- use epiextractr to download CPS data from the EPI microdata site.
To install:
You can install any of these packages from the EPI R-universe repository. For example, the epiverse package can be installed with:
Similar code is available on each package’s GitHub page.
However, for easier syntax and updates, consider adding the repository to the “repos” option in your .Rprofile file:
# Example .Rprofile
options(repos = c(
epi = "https://economic.r-universe.dev",
getOption("repos")
))After making those edits and restarting R, you can just use install.packages("epiverse") to update packages to the latest version, or install new EPI packages.
To find and edit your .Rprofile, use usethis::edit_r_profile().