| list_carbon_tracker_countries | R Documentation |
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.
list_carbon_tracker_countries()
A data frame with iso_code and country_name columns.
# 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.