footprint
0.2Calculate Air Travel Emissions
Overview
A handy tool to calculate carbon footprints from air travel based on three-letter International Air Transport Association (IATA) airport codes or latitude and longitude. footprint first calculates the great-circle distance between departure and arrival destinations. It then uses the Department of Environment, Food & Rural Affairs (DEFRA) greenhouse gas conversion factors for business air travel to estimate the carbon footprint. These conversion factors consider trip length, flight class (e.g. economy, business), and emissions metric (e.g. carbon dioxide equivalent, methane).
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-clang
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE r-oldrel-macos-arm64
- NOTE r-oldrel-macos-x86_64
- NOTE r-oldrel-windows-x86_64
- NOTE r-patched-linux-x86_64
- NOTE r-release-linux-x86_64
- NOTE r-release-macos-arm64
- NOTE r-release-macos-x86_64
- NOTE r-release-windows-x86_64
- NOTE2026-03-103 OK · 11 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Issues over time
PRs over time
Repository practices
5 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/acircleda/footprint on 2026-07-19.
Show all practices
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 9.5 median / 13 max
- Test cases
- 2 / 0.27 per code line
Test coverage
Line coverage
98%
Expression
97.4%
Tests / Examples
98.4% / 85% ex
Functions
2 2 exported
Complexity
9.5 avg / 13 max
Call network
2 nodes / 0 edges
Call graph
Open call graph →Lowest coverage
2 functions| Function | Cyclo | Coverage |
|---|---|---|
| airport_footprint exp | 6 | 96% |
| latlong_footprint exp | 13 | 100% |
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.2Latest
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.12021-01-06
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-01-06
- Total releases
- 2 / 5 yrs
- License
- CC0
- Minimum R
- ≥ 2.10
- Download size
- 1.4 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet