1  Introduction

NOTE:Andres, finish chapter

1.1 Ojectives

This book explains several things,

  1. An overview of the project from a technical perspective.
  2. The interaction between R packages developed to manage the data and do the calculations.
  3. The different types of data in the PIP project and the interaction between them.
  4. How the poverty calculator, the table maker, and the Statistics Online (SOL) platform are updated.
  5. Technical standalone procedure necessary for the execution of some parts of the project.

1.2 Technical requirements

You need to make sure that the bookdown package is installed in your local computer

install.packages("bookdown")

# or the development version
 devtools::install_github("rstudio/bookdown")

Remember each Rmd file contains one and only one chapter, and a chapter is defined by the first-level heading #.

Make sure to install the latest version of PIP R packages by typing the following

ipkg <- utils::installed.packages()[,1]

pip_install <- function(pkg, ipkg) {
  if (isFALSE(pkg %in% ipkg)) {
    gitcall <- paste0("PIP-Technical-Team/", pkg)
    remotes::install_github(gitcall, dependencies = TRUE)
    TRUE
  } else {
    FALSE
  }
}

pkgs <- c("pipload", "pipaux", "wbpip", "piptb", "pipdm", "pipapi")


purrr::walk(pkgs, pip_install, ipkg = ipkg)