Skip to content

carbonpredict

Predict Carbon Emissions for UK SMEs

v2.0.1 · Jan 23, 2026 · MIT + file LICENSE

Description

Predict Scope 1, 2 and 3 carbon emissions for UK Small and Medium-sized Enterprises (SMEs), using Standard Industrial Classification (SIC) codes and annual turnover data, as well as Scope 1 carbon emissions for UK farms. The 'carbonpredict' package provides single and batch prediction, plotting, and workflow tools for carbon accounting and reporting. The package utilises pre-trained models, leveraging rich classified transaction data to accurately predict Scope 1, 2 and 3 carbon emissions for UK SMEs as well as identifying emissions hotspots. It also provides Scope 1 carbon emissions predictions for UK farms of types: Cereals ex. rice, Dairy, Mixed farming, Sheep and goats, Cattle & buffaloes, Poultry, Animal production and Support for crop production. The methodology used to produce the estimates in this package is fully detailed in the following peer-reviewed publications: Phillpotts, A., Owen. A., Norman, J., Trendl, A., Gathergood, J., Jobst, Norbert., Leake, D. (2025) <doi:10.1111/jiec.70106> "Bridging the SME Reporting Gap: A New Model for Predicting Scope 1 and 2 Emissions" and Wells, J., Trendl, A., Owen, A., Barrett, J., Gridley, J., Jobst, N., Leake, D. (2025) <doi:10.1088/1748-9326/ae20ab> "A Scalable Tool for Farm-Level Carbon Accounting: Evidence from UK Agriculture".

Downloads

CRAN

298

Last 30 days

15706th

640

Last 90 days

2.2K

Last year

Trend: +78.4% (30d vs prior 30d)

r2u CRAN

17

Last 30 days

73

Last 90 days

175

Last year

Trend: -19.1% (30d vs prior 30d)

autoCRAN

6

Last 7 days

31

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

1,580

Files

51

Compiled share

0%

Has compiled src

No

Language breakdown

R 725 (45.9%)Tests 578 (36.6%)Docs 277 (17.5%)

API

Exported functions

10

Internal functions

0

Recent export changes

v2.0.0+1 farms_scope1
v1.0.0+9 batch_predict_emissions, batch_sme_plots, plot_scope3_emissions +6 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.80

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2025-10-14

Latest release

2026-01-23

Avg cadence

51 days

Cold removal rate

Dep drift

0

LOC over versions

v1.0.0: 1,286 LOCv2.0.0: 1,580 LOCv2.0.1: 1,580 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies dplyr ggplot2 progress lmerTest networkD3 htmltools htmlwidgets carbonpredict

Version History

4 tracked
new 2.0.1 Mar 10, 2026
updated 2.0.1 ← 2.0.0 diff Jan 22, 2026
updated 2.0.0 ← 1.0.0 diff Oct 28, 2025
new 1.0.0 Oct 13, 2025