vignettes/articles/reproducible-research.Rmd
reproducible-research.RmdReproducible research was an important consideration in the design of the Poverty and Inequality Platform (PIP).
In order to facilitate the reproducible research process, the PIP API allows you to retrieve
important information about:
- The versions of the datasets used in PIP - The version of the
R code powering all of PIP computations
By default, the PIP API will always return the most recent data available, using the most recent PPPs available. It is possible to query specific data versions however.
data_versions <- get_versions()
data_versionsSelect a version:
my_version <- data_versions$version[1]
my_versionPass it to the version argument of
get_stats or other functions:
get_stats(country = "AGO", version = my_version)Even if the data is the same, methodological changes may be implemented that may break reproducibility. This is why it is also possible to retrieve information about the version of PIP that runs at a particular moment in time.
PIP is powered primarily by two R packages:
The get_pip_info() function allows you to retrieve
information about the versions of these packages
pip_info <- get_pip_info()
pip_info$pip_packagesThese are the two packages which changes are are most likely to
impact reproducibility, but the get_pip_info() function
also provides additional information about the R version
being used by PIP, the Operating System, etc.