This package has been designed to download and consolidate JSON files from the webpage www.presupuestoabierto.gob.cl.
if(!require(devtools)) install.packages("devtools")
devtools::install_github("hugomansilla/presupuestochile")
# load library
library(presupuestochile)
## Examples
# config parameters
ruts <- c("70005600-7","81591900-9","70892200-5","72109700-5")
years <- c(2016,2017,2018,2019,2020,2021,2022)
region <- 12
# download data by recipient of public resources
data_receptor <- descargar_datos_receptor(ruts,years)
# download data by region of Chile
data_region <- descargar_datos_region(region,years)
To download the latest source from the Git server do this:
git clone https://github.com/hugomansilla/presupuestochile.git
(you'll get a directory named presupuestochile, filled with the source code)
If you have problems, questions, ideas or suggestions, please contact me at this email: hugomansilla@gmail.com