carbonr
carbonr: An R Package for Estimating Carbon-Equivalent Emissions - Published in JOSS (2024)
Science Score: 93.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
○Committers with academic emails
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Last synced: 6 months ago
·
JSON representation
Repository
Calculating carbon emissions in R
Basic Info
- Host: GitHub
- Owner: IDEMSInternational
- License: lgpl-3.0
- Language: HTML
- Default Branch: main
- Size: 7.33 MB
Statistics
- Stars: 18
- Watchers: 1
- Forks: 4
- Open Issues: 9
- Releases: 2
Created over 4 years ago
· Last pushed 6 months ago
Metadata Files
Readme
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# carbonr
[](https://github.com/IDEMSInternational/carbonr/actions)
[](https://doi.org/10.21105/joss.06932)
[](https://app.codecov.io/gh/IDEMSInternational/carbonr?branch=main)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://CRAN.R-project.org/package=carbonr)
[-lightgrey.svg)](https://www.gnu.org/licenses/lgpl-3.0.en.html)
## Overview
`carbonr` is an R package designed to conveniently calculate carbon-equivalent emissions using data from the [UK Government report (2024)](https://www.gov.uk/government/publications/greenhouse-gas-reporting-conversion-factors-2024).
## Installation
Install the development version from GitHub with:
```{r, eval = FALSE}
# install.packages("devtools")
devtools::install_github("IDEMSInternational/carbonr")
```
## Aims of carbonr
`carbonr` was developed to provide a reliable and reproducible method for calculating carbon-equivalent emissions. It aims to:
- Ensure transparency, flexibility, and reproducibility in emissions calculations.
- Facilitate easy saving, editing, and redistribution of results.
- Encourage community contributions to extend functionality.
- Provide a user-friendly interface through Shiny for users with limited programming experience.
## Functions in `carbonr`
There are different types of functions in `carbonr`. There are travel and accommodation based estimates based on general activities, making them easier to use without detailed knowledge of specific 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()`
#### Raw Input-Based Emissions
These functions allow for more precise calculations by inputting specific values, such as the quantity of materials used:
- `construction_emissions()`
- `electrical_emissions()`
- `material_emissions()`
- `metal_emissions()`
- `paper_emissions()`
- `plastic_emissions()`
- `raw_fuels()`
#### Clinical Emissions
These functions are specific to calculating emissions from clinical and medical activities:
- `anaesthetic_emissions()`
- `clinical_emissions()`
- `clinical_theatre_data()`
All functions return carbon-equivalent emissions in tonnes. A Shiny app is available via `shiny_emissions()` for a GUI-based calculation.
Some examples demonstrating how to use the `carbonr` package functions can be found in the vignette.
## Additional Features
**Beyond the Emissions Available in the 2025 UK Report**
Additional functions are available for emissions not covered in the UK Government report, such as those related to operating theatre waste. Further details on using the operating theatre waste functions are provided in the vignette.
The `carbon_credit_price()` function provides values based on [World Bank data](https://carbonpricingdashboard.worldbank.org/).
**Shiny App**
An interactive calculator using Shiny can be accessed by the `shiny_emissions()` function. This calculator uses some of the functions in the `carbonr` package:
```{r, eval = FALSE}
shiny_emissions()
```
## For the Future
As well as those outlined in the "issues", planned features include:
- Data integration from data sets. For example, office emissions from accounting records.
- Comprehensive reporting tools with summary statistics, tables, and graphs.
- Open to further collaborations to contribute new emissions, insights, and methodologies.
- Continual updates to integrate the latest research.
## Contributing, Reporting Issues, and Seeking Support
We welcome contributions from the community to enhance the `carbonr` package. If you would like to contribute, please follow these guidelines:
- **Contribute to the software**: If you wish to contribute new features, fix bugs, or improve the documentation, please fork the repository, create a new branch for your changes, and submit a pull request. Ensure that your code follows the existing style and include tests where applicable.
- **Report issues or problems**: If you encounter any bugs or have suggestions for improvements, please open an issue in the [GitHub repository](https://github.com/IDEMSInternational/carbonr/issues). Provide as much detail as possible, including steps to reproduce the issue if applicable.
- **Seek support**: For any questions or help with using `carbonr`, you can reach out by opening a discussion in the [GitHub Discussions](https://github.com/IDEMSInternational/carbonr/discussions).
Your feedback and contributions are invaluable in helping us improve and maintain the package.
## References
#### Other Online Calculators:
- [Carbonfund.org](https://shop.climeco.com/individual/individual-emissions-calculator/)
- [Carbon Footprint Calculator](https://www.carbonfootprint.com/calculatorfaqs.html)
#### Sources
1. UK Government Report: Department for Energy Security and Net Zero. (2023). [Greenhouse Gas Reporting: Conversion Factors 2023](https://www.gov.uk/government/publications/greenhouse-gas-reporting-conversion-factors-2023).
2. UK Government Report: Department for Energy Security and Net Zero. (2024). [Greenhouse Gas Reporting: Conversion Factors 2024](https://www.gov.uk/government/publications/greenhouse-gas-reporting-conversion-factors-2024).
3. Radiative Forcing Factor: DEFRA, 2016. Government GHG conversion factors for company reporting.
4. Clinical Anaesthetic Emissions: Various sources including -
Varughese, S. and Ahmed, R., 2021. Environmental and occupational considerations 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. British Journal of Anaesthesia, 125(5), pp.680-692;
Wyssusek, K., Chan, K.L., Eames, G. and Whately, Y., 2022. Greenhouse gas reduction in anaesthesia practice: a departmental environmental strategy. BMJ Open Quality, 11(3), p.e001867;
Sherman, J., Le, C., Lamers, V. and Eckelman, M., 2012. Life cycle greenhouse gas emissions of anesthetic drugs. Anesthesia & Analgesia, 114(5), pp.1086-1090.
5. Department of Climate Change, Energy, the Environment and Water (DCCEEW). National Greenhouse Accounts Factors: 2022. Australian Government, 2022.
Owner
- Name: IDEMS International
- Login: IDEMSInternational
- Kind: organization
- Email: contact@idems.international
- Website: https://www.idems.international/
- Repositories: 123
- Profile: https://github.com/IDEMSInternational
JOSS Publication
carbonr: An R Package for Estimating Carbon-Equivalent Emissions
Published
October 10, 2024
Volume 9, Issue 102, Page 6932
Tags
carbon emissions open-source environmental impact greenhouse gas reporting climate change sustainability reproducibility transparency Shiny emissions data environmental strategies calculateGitHub Events
Total
- Create event: 1
- Issues event: 1
- Release event: 1
- Watch event: 3
- Issue comment event: 3
- Push event: 22
- Pull request review event: 2
- Pull request event: 11
Last Year
- Create event: 1
- Issues event: 1
- Release event: 1
- Watch event: 3
- Issue comment event: 3
- Push event: 22
- Pull request review event: 2
- Pull request event: 11
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| lilyclements | l****y@i****l | 359 |
| Harald von Waldow | h****w@t****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 19
- Total pull requests: 38
- Average time to close issues: 6 months
- Average time to close pull requests: 2 days
- Total issue authors: 5
- Total pull request authors: 3
- Average comments per issue: 2.42
- Average comments per pull request: 0.13
- Merged pull requests: 36
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 15
- Average time to close issues: about 1 hour
- Average time to close pull requests: 4 days
- Issue authors: 3
- Pull request authors: 2
- Average comments per issue: 1.5
- Average comments per pull request: 0.2
- Merged pull requests: 13
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- lilyclements (9)
- hvwaldow (8)
- dannyparsons (1)
- mengqi-z (1)
- genghiskhanofnz (1)
Pull Request Authors
- lilyclements (57)
- hvwaldow (1)
- PhyllisMuniu (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
- Total downloads: unknown
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 4
proxy.golang.org: github.com/IDEMSInternational/carbonr
- Documentation: https://pkg.go.dev/github.com/IDEMSInternational/carbonr#section-documentation
- License: lgpl-3.0
-
Latest release: v0.2.1
published over 1 year ago
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced:
6 months ago
proxy.golang.org: github.com/idemsinternational/carbonr
- Documentation: https://pkg.go.dev/github.com/idemsinternational/carbonr#section-documentation
- License: lgpl-3.0
-
Latest release: v0.2.1
published over 1 year ago
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
- airportr * imports
- checkmate * imports
- dplyr * imports
- htmltools * imports
- rlang * imports
- shiny * imports
- shinydashboard * imports
- sp * imports
- stringr * imports
- tibble * imports
- testthat >= 2.0.0 suggests
.github/workflows/check-release.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/r.yml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
