Setup Instructions

To reproduce the results on your own computer, please follow these setup instructions.

  1. Download or clone the git repository on your computer.
  2. The raw and processed data files should be available inside the data directory.
  3. Install R and/or Rstudio.
  4. Install the R packages used for the analyses. The source-libraries.R file contains the list of all required packages. You can also install the packages manually, at once, using the code below
ipak <- function(pkg){
    new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
    if (length(new.pkg)) 
        install.packages(new.pkg, dependencies = TRUE)
    sapply(pkg, require, character.only = TRUE)
}

packages <- c("workflowr","tidyverse","readxl","sf","geojsonsf","leaflet","paletteer","scales","DT","knitr","kableExtra")
ipak(packages)
  1. After completing these steps, you should be able to run the analysis.

Note

  • Please refer to the workflowr - Getting Started article to understand how code and analysis files are structured within the project directory.

sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)

Matrix products: default

locale:
[1] LC_COLLATE=English_India.1252  LC_CTYPE=English_India.1252   
[3] LC_MONETARY=English_India.1252 LC_NUMERIC=C                  
[5] LC_TIME=English_India.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] workflowr_1.7.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.7        jquerylib_0.1.3   pillar_1.6.2      compiler_4.0.3   
 [5] bslib_0.2.4       later_1.2.0       git2r_0.27.1      tools_4.0.3      
 [9] getPass_0.2-2     digest_0.6.27     jsonlite_1.7.2    evaluate_0.14    
[13] lifecycle_1.0.0   tibble_3.0.4      pkgconfig_2.0.3   rlang_0.4.11     
[17] rstudioapi_0.13   yaml_2.2.1        xfun_0.28         httr_1.4.2       
[21] stringr_1.4.0     knitr_1.33        fs_1.5.0          vctrs_0.3.8      
[25] sass_0.3.1        rprojroot_2.0.2   glue_1.4.2        R6_2.5.0         
[29] processx_3.5.2    fansi_0.4.1       rmarkdown_2.9     callr_3.7.0      
[33] magrittr_2.0.1    whisker_0.4       ps_1.6.0          promises_1.2.0.1 
[37] ellipsis_0.3.2    htmltools_0.5.1.1 httpuv_1.6.1      utf8_1.1.4       
[41] stringi_1.6.2     crayon_1.4.1