Programmatic access to open statistical data for population studies Frans Willekens
willekens@nidi.nl The ZIP archive attached to this publication contains the following files: a. ProgrammaticAccessDR.Rmd: R Markdown document The paper was prepared using R Markdown in RStudio. The Rmd document contains all the code used in the paper and is sufficient to retrieve the data from the data providers’ data portals (APIs) and to produce all tables and figures shown in the paper. R (version 4.2.1, 2022) was used for data retrieval, computation and plotting. Appendix A describes how to install the packages used in the paper. For more info on R Markdown, see https://rmarkdown.rstudio.com b. R code as a separate R script c. PDF version of the Rmd document d. The references in BibTex format, prepared in R Markdown To PDF version of the paper submitted to DR was obtained by rendering the Rmd document in PDF format using the RStudio IDE knit button (the transformation uses LaTeX template). After the paper was accepted, a Microsoft Word (docx) version was produced because the DR guidelines require a docx version of the paper. The docx format is also supported by R Markdown. The Citation Style Language (CSL) was used to prepare the citations in the format required by Demographic Research. Ilya Kashnitsky contributed the Demographic Research citation style (demographic-research.csl) to the Zotero Style Repository https://www.zotero.org/styles (see paper Annex A-2). To download the CSL style, go to https://www.zotero.org/styles and enter Demographic Research in the Style Search to search for the CSL citation style. The citation style file demographic-research.csl is downloaded. Save the file in the folder that contains the R Markdown project file (.Rproj) and add the CSL file to the YAML metadata of your document. The R package styler (https://cran.r-project.org/web/packages/styler/index.html) was used to standardise the format of the R code and pretty-print the code (to lint the R code). This Readme file was also prepared in R Markdown. First, the Rmd document was converted to rtf format, which is supported by DR. Then, the rtf format was converted to plain text (txt) format. All formatting is lost during that transformation.