
List supported country codes for carbon intensity lookup
Source:R/countries.R
list_carbon_tracker_countries.RdReads 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.
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)
}
# }