carbonr is an R package designed to convenientlycalculate carbon-equivalent emissions using data from theUKGovernment report (2024).
Install the development version from GitHub with:
# install.packages("devtools")devtools::install_github("IDEMSInternational/carbonr")carbonr was developed to provide a reliable andreproducible method for calculating carbon-equivalent emissions. It aimsto:
carbonrThere are different types of functions incarbonr. Thereare travel and accommodation based estimates based on generalactivities, making them easier to use without detailed knowledge ofspecific inputs:
Travel-Related Emissions
airplane_emissions()ferry_emissions()rail_emissions()land_emissions()vehicle_emissions()Accommodation-Related Emissions
hotel_emissions()building_emissions()office_emissions()household_emissions()These functions allow for more precise calculations by inputtingspecific values, such as the quantity of materials used:
construction_emissions()electrical_emissions()material_emissions()metal_emissions()paper_emissions()plastic_emissions()raw_fuels()These functions are specific to calculating emissions from clinicaland medical activities:
anaesthetic_emissions()clinical_emissions()clinical_theatre_data()All functions return carbon-equivalent emissions in tonnes. A Shinyapp is available viashiny_emissions() for a GUI-basedcalculation.
Some examples demonstrating how to use thecarbonrpackage functions can be found in the vignette.
Beyond the Emissions Available in the 2025 UKReport
Additional functions are available for emissions not covered in theUK Government report, such as those related to operating theatre waste.Further details on using the operating theatre waste functions areprovided in the vignette.
Thecarbon_credit_price() function provides values basedonWorld Bankdata.
Shiny App
An interactive calculator using Shiny can be accessed by theshiny_emissions() function. This calculator uses some ofthe functions in thecarbonr package:
shiny_emissions()
As well as those outlined in the “issues”, planned featuresinclude:
We welcome contributions from the community to enhance thecarbonr package. If you would like to contribute, pleasefollow these guidelines:
Contribute to the software: If you wish tocontribute new features, fix bugs, or improve the documentation, pleasefork the repository, create a new branch for your changes, and submit apull request. Ensure that your code follows the existing style andinclude tests where applicable.
Report issues or problems: If you encounter anybugs or have suggestions for improvements, please open an issue in theGitHubrepository. Provide as much detail as possible, including steps toreproduce the issue if applicable.
Seek support: For any questions or help withusingcarbonr, you can reach out by opening a discussion intheGitHubDiscussions.
Your feedback and contributions are invaluable in helping us improveand maintain the package.
UK Government Report: Department for Energy Security and NetZero. (2023).GreenhouseGas Reporting: Conversion Factors 2023.
UK Government Report: Department for Energy Security and NetZero. (2024).GreenhouseGas Reporting: Conversion Factors 2024.
Radiative Forcing Factor: DEFRA, 2016. Government GHG conversionfactors for company reporting.
Clinical Anaesthetic Emissions: Various sources including-
Varughese, S. and Ahmed, R., 2021. Environmental and occupationalconsiderations of anesthesia: a narrative review and update. Anesthesia& Analgesia, 133(4), pp.826-835;
McGain, F., Muret, J., Lawson, C. and Sherman, J.D., 2020.Environmental sustainability in anaesthesia and critical care. BritishJournal of Anaesthesia, 125(5), pp.680-692;
Wyssusek, K., Chan, K.L., Eames, G. and Whately, Y., 2022. Greenhousegas reduction in anaesthesia practice: a departmental environmentalstrategy. BMJ Open Quality, 11(3), p.e001867;
Sherman, J., Le, C., Lamers, V. and Eckelman, M., 2012. Life cyclegreenhouse gas emissions of anesthetic drugs. Anesthesia &Analgesia, 114(5), pp.1086-1090.