Statement of need
Historically, societal exergy analysis (SEA) practitioners have analyzed the energy conversion chains (ECCs) of individual countries using linked spreadsheets, often starting with primary- and final-stage data from the International Energy Agency’s (IEA’s) extended world energy balances (EWEBs) (Ayres, Ayres, and Warr 2003; Serrenho et al. 2014; Brockway et al. 2014, 2015). Data were stored in varying and inconsistent formats. An early SEA database (De Stercke 2014) estimated energy efficiencies of end-use machines using the economic status of countries, thereby precluding use in energy-economy studies.
Researchers in the field wanted to expand SEA to cover all countries, but the spreadsheet approach to SEA was deemed not scalable. A new approach to SEA was needed, one that scaled across all countries for many years without relying on economic data to estimate machine efficiencies.
To address that need, we created a suite of R packages to support the creation and use of the CL-PFU database. But creating the CL-PFU database involves several R packages and much input data. A way to streamline the installation of packages was needed, such that a single install.packages() call would ensure that all dependencies are available.
This package (CLPFUDatbase) addresses the need for a simple way to install all dependencies. CLPFUDatbase is metapackage1, whose dependencies include all packages required to make the CL-PFU database. Installation of CLPFUDatabase triggers installation of all dependencies for the CL-PFU database.
Installation
You can install CLPFUDatabase and all its dependencies from GitHub with:
# install.packages("devtools")
devtools::install_github("EnergyEconomyDecoupling/CLPFUDatabase")Dependencies
The packages in the table below are dependencies of CLPFUDatabase.
| Package name | Host | Organization |
|---|---|---|
| RCLabels | CRAN | NA |
| matsbyname | CRAN | NA |
| matsindf | CRAN | NA |
| MKHthemes | GitHub | MatthewHeun |
| MWTools | GitHub | EnergyEconomyDecoupling |
| IEATools | GitHub | MatthewHeun |
| Recca | GitHub | MatthewHeun |
| PFUSetup | GitHub | EnergyEconomyDecoupling |
| PFUPipelineTools | GitHub | EnergyEconomyDecoupling |
| PFUPipeline | GitHub | EnergyEconomyDecoupling |
| PFUAggPipeline | GitHub | EnergyEconomyDecoupling |
Packages hosted on CRAN can be updated in the “Packages” tab of RStudio. Users will need to occasionally update packages hosted elsewhere by using the commands in the table below.
devtools::install_github(MatthewHeun/MKHthemes)
devtools::install_github(EnergyEconomyDecoupling/MWTools)
devtools::install_github(MatthewHeun/IEATools)
devtools::install_github(MatthewHeun/Recca)
devtools::install_github(EnergyEconomyDecoupling/PFUSetup)
devtools::install_github(EnergyEconomyDecoupling/PFUPipelineTools)
devtools::install_github(EnergyEconomyDecoupling/PFUPipeline)
devtools::install_github(EnergyEconomyDecoupling/PFUAggPipeline)