I used the R package eixport (Ibarra-Espinosa et al., 2018) to download EDGAR data (5 and spec voc 4.3.2) and then include several speciations for chemical mechanisms according to Carter (2015) and Lopez-Norena et al (2019).
The functions to download EDGAR are commented. This means that you must download all NetCDF files before running chem_edgar.
First, download a project with vein and estimate vehicular emissions.
Some projects are here: https://atmoschem.github.io/vein/reference/get_project.html
get_project(directory = "awesomecity")
Then open the file main.Rproj with Rstudio and source the file main.R
Then, run the following code