Skip to contents

Reads the country energy mix data bundled with the installed codecarbon package. The country_iso_code argument to carbon_tracker() and with_emissions_tracked() must be one of the codes returned here.

Usage

list_carbon_tracker_countries()

Value

A data frame with iso_code and country_name columns.

Examples

# \donttest{
# Requires codecarbon to be installed (setup_carbon_tracker()); not run
# on CRAN's check machines, which don't have it.
if (carbon_tracker_ready()) {
  countries <- list_carbon_tracker_countries()
  head(countries)
}
# }