| carbon_tracker_ready | R Documentation |
Check whether codecarbon is installed and importable
carbon_tracker_ready()
TRUE if codecarbon can be imported, FALSE otherwise (including
when no Python interpreter can be found at all).
# Not \dontrun{} -- this genuinely works, it's just slow: on a machine
# with no Python configured (e.g. a fresh CRAN check environment),
# reticulate's interpreter discovery alone can take >10s before this
# returns FALSE. \donttest{} keeps it out of the default check timing
# while still letting CRAN's extended checks and interactive users
# verify it actually runs.
carbon_tracker_ready()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.