CodeCarbonR: Track Energy Consumption and Carbon Emissions of R Code

Wraps the Python 'codecarbon' package via 'reticulate' to measure the energy consumption and estimated carbon emissions of R code. Provides a self-contained setup routine that installs 'codecarbon' into a dedicated conda environment, and an R-facing tracker API for measuring a block of code or a longer-running session.

Package details

AuthorBeatrice Bock [aut, cre, cph] (ORCID: <https://orcid.org/0000-0003-2240-9360>), Rachel Peterson [aut] (ORCID: <https://orcid.org/0009-0007-2048-8268>), Dylan Van Bramer [aut]
MaintainerBeatrice Bock <beabockm@gmail.com>
LicenseMIT + file LICENSE
Version0.1.1
URL https://beabock.github.io/CodeCarbonR/ https://github.com/beabock/CodeCarbonR
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("CodeCarbonR")

Try the CodeCarbonR package in your browser

Any scripts or data that you put into this service are public.

CodeCarbonR documentation built on Sept. 21, 2026, 5:08 p.m.