Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / PRWP / RR_WLD_2025_279
PRWP

Reproducibility package for Quantifying The Trade Drivers Of Planetary Boundaries

2025
Get Reproducibility Package
Reference ID
RR_WLD_2025_279
DOI
https://doi.org/10.60572/0hk5-5w26
Author(s)
Etienne Espagne, Gabriel Santos Carneiro, Guilherme Magacho
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Apr 09, 2025
Last modified
Apr 09, 2025
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Citation
  • Overview

    Abstract

    The latest Planetary Boundaries update portrays an alarming global ecological situation in which six of the nine boundaries are transgressed. As a large share of human economic activities is enabled by international trade, this paper aims to analyze he footprints of global trade over the planetary boundaries. Using a multi-regional input-output database, we calculate environmental footprints embodied in trade relations related to the different planetary boundaries for different countries and ecnomic activities (economic sectors) through a modified method of consumption-based accounting. Results indicate that the different global economic regions have heterogenous footprints, occupying different positions along a multidimensional spectrum pressures over the different planetary boundaries. These geographical differences largely reflect the different sectoral economic structure of the countries, as the pressure over planetary boundaries are sector specific.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/index.php/catalog/266/download/785/README.pdf
    Reproducibility package for Quantifying The Trade Drivers Of Planetary Boundaries
    Title
    Reproducibility package for Quantifying The Trade Drivers Of Planetary Boundaries
    Date
    2025-04
    Dependencies
    R dependencies are listed in the file renv.lock.
    Notes
    Computational reproducibility verified by Development Impact (DIME) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    R
    Name
    R

    Reproducibility

    Technology environment

    Paper exhibits were reproduced in a computer with the following specifications:
    • OS: Windows 10 Enterprise, version 21H2
    • Processor: Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz, 16 Core(s)
    • Memory available: 15.7 GB
    • Software version: R 4.4.1

    Technology requirements
    • Server: ~10 hours run time.
    • Local portion: ~2 minutes run time.
    Reproduction instructions

    This reproducibility package has two main parts:

    1. Part 1: Generating Outputs (Run on Server)
    The original authors ran the following R scripts on a cloud-based server using RStudio on Onyxia – SSP Cloud Datalab:

    1. Generating Matrices - Original Code.R
    2. Input-Output Analysis - Original Code.R
      These scripts generate .rds datasets, which are stored in the Outputs/ folder. This part was virtually verified by the replicators.
      If you wish to rerun this step:
    • Download the data from GLORIA, as instructed in the Data Availability section.
    • Place the files in the correct directories and run the codes.
    • Note: The code was originally run using Release 57, which was also the version used by the authors. Since this version is no longer available and the current public version is Release 59, some adjustments may be required to account for differences in data structure or content. Additionally, you may need to modify the 0 - Loading data and basic matrices section of the code to adapt it to your environment.

    2. Part 2: Creating Figures (Run Locally)
    Since some users may face challenges replicating Part 1 due to data access or computational limitations, all outputs produced by Part 1 are included in the package.
    To replicate the exhibits using the datasets generated in Part 1:

    1. Open the .Rproj file and run renv::restore()
    2. Run the script Create figures.R. This will generate all CSV files needed to recreate the paper’s figures.
    3. Go to Flourish, log in or create a free account.
    4. Follow the step-by-step instructions in the README file to create the figures as shown in the paper.

    Data

    Datasets
    Global Resource Input-Output Assessment Database
    Name
    Global Resource Input-Output Assessment Database
    Note
    Source: Industrial Ecology Virtual Laboratory. Location: 20230310_120secMother_AllCountries_002_TQ-Results_2021_057_Markup001(full).csv. 20230310_120secMother_AllCountries_002_YQ-Results_2021_057_Markup001(full).csv. 20230320_120secMother_AllCountries_002_T-Results_2021_057_Markup001(full).csv. 20230320_120secMother_AllCountries_002_V-Results_2021_057_Markup001(full).csv. 20230320_120secMother_AllCountries_002_Y-Results_2021_057_Markup001(full).csv. The verification of this package was conducted using Release 57, the version used by the authors. At the time of publication, the most recent available version is Release 59, which would require code modifications to run. However, intermediate data produced by the authors using Release 57 is included in this package, allowing users to reproduce the exhibits without re-running the full pipeline.
    Access policy
    The data is publicly available, but republication is not permitted. While the current version (Release 59) is accessible to the public, the earlier version used in this package (Release 57) is no longer available.
    Data URL
    https://ielab.info/resources/gloria
    Data statement

    Some data is restricted and has not been included in the reproducibility package. For more details, please refer to the README file.

    Description

    Output
    Quantifying The Trade Drivers Of Planetary Boundaries
    Type
    PRWP Working Paper
    Title
    Quantifying The Trade Drivers Of Planetary Boundaries
    Description
    Policy Research Working Papers (PRWP)
    Authors
    Author Affiliation Email
    Etienne Espagne World Bank eespagne@worldbank.org
    Gabriel Santos Carneiro IUSS Pavia gabriel.santos@iusspavia.it
    Guilherme Magacho Agence Française de Développement magachog@afd.fr
    Date of production

    2025-04-08

    Scope and coverage

    Geographic locations
    Location Code
    World WLD
    Keywords
    Planetary Boundaries Global Trade Ecological Economics Footprint Assessment

    Disclaimer

    Disclaimer

    The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.

    Access and rights

    License
    Name URI
    Modified BSD3 https://opensource.org/license/bsd-3-clause/

    Contacts

    Contacts
    Name Affiliation Email
    Etienne Espagne World Bank eespagne@worldbank.org
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DIME World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2025-04-08

    Document version

    1

    Citation

    Citation
    loading, please wait...
    Citation format
    Export citation: RIS | BibTeX | Plain text
    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.