knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of pcodesOCHA is to scrap pcodes and geoJSON from UNOCHA Common Operational Datasets web server
While the package can be used as a standalone, the scraped files are available in output folder.
A Cron job runs once a month at 12:00 am to update the outputs thanks to github actions.
the easiest way to use the data is probably by importing directly the data from the raw data in the folder output: - CSV : https://raw.githubusercontent.com/ElliottMess/pcodesOCHA/master/output/all_pcodes_20210112.csv - JSON : https://raw.githubusercontent.com/ElliottMess/pcodesOCHA/master/output/all_pcodes_20210112.json
For instance to read it with readr: pcodes <- readr::read_csv("https://raw.githubusercontent.com/ElliottMess/pcodesOCHA/master/output/all_pcodes_20210112.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.