{"id":20219,"name":"ghg emissions indicator","description":"R scripts for a greenhouse gases emissions indicator published on Environmental Reporting British Columbia.","url":"https://github.com/bcgov/ghg-emissions-indicator","last_synced_at":"2026-04-13T20:30:12.469Z","repository":{"id":52942727,"uuid":"66112189","full_name":"bcgov/ghg-emissions-indicator","owner":"bcgov","description":"R scripts for a GHG emissions indicator published on Environmental Reporting BC","archived":false,"fork":false,"pushed_at":"2024-12-10T18:48:57.000Z","size":468,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-04-01T15:13:28.982Z","etag":null,"topics":["data-science","env","r","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcgov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-19T21:03:41.000Z","updated_at":"2025-08-22T21:40:14.000Z","dependencies_parsed_at":"2024-03-17T06:00:42.041Z","dependency_job_id":"3a8e1637-0319-4c98-a716-3f271f397445","html_url":"https://github.com/bcgov/ghg-emissions-indicator","commit_stats":{"total_commits":257,"total_committers":8,"mean_commits":32.125,"dds":0.6147859922178989,"last_synced_commit":"a730bc1ecf45fd4a96372057c71b1d55f4e26a5b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bcgov/ghg-emissions-indicator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fghg-emissions-indicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fghg-emissions-indicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fghg-emissions-indicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fghg-emissions-indicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcgov","download_url":"https://codeload.github.com/bcgov/ghg-emissions-indicator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fghg-emissions-indicator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31567227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"owner":{"login":"bcgov","name":"bcgov","uuid":"916280","kind":"organization","description":"This is the home for code that is open","email":"Developer.Experience@gov.bc.ca","website":"https://github.com/bcgov/BC-Policy-Framework-For-GitHub","location":"Canada","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/916280?v=4","repositories_count":2150,"last_synced_at":"2024-12-16T17:13:08.511Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/bcgov","funding_links":[],"total_stars":5184,"followers":687,"following":0,"created_at":"2022-11-05T11:06:51.523Z","updated_at":"2024-12-16T17:13:08.511Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcgov","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcgov/repositories"},"packages":[],"commits":{"id":1254201,"full_name":"bcgov/ghg-emissions-indicator","default_branch":"master","total_commits":257,"total_committers":7,"total_bot_commits":3,"total_bot_committers":1,"mean_commits":36.714285714285715,"dds":0.6108949416342413,"past_year_total_commits":0,"past_year_total_committers":0,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":0.0,"past_year_dds":0.0,"last_synced_at":"2026-04-10T19:14:43.044Z","last_synced_commit":"a730bc1ecf45fd4a96372057c71b1d55f4e26a5b","created_at":"2023-03-27T10:59:38.081Z","updated_at":"2026-04-10T19:14:17.481Z","committers":[{"name":"Andrew Ladle","email":"andrew.ladle@gov.bc.ca","login":"andladle","count":100},{"name":"stephhazlitt","email":"stephanie.hazlitt@gov.bc.ca","login":"stephhazlitt","count":74},{"name":"Karly Harker","email":"karly.harker@gov.bc.ca","login":"KarHarker","count":38},{"name":"Andy Teucher","email":"andy.teucher@gov.bc.ca","login":"ateucher","count":22},{"name":"Perkins","email":"genevieve.perkins@gov.bc.ca","login":"gcperk","count":13},{"name":"Chris Madsen","email":"78942676+chrispmad","login":"chrispmad","count":7},{"name":"repo-mountie[bot]","email":"44246292+repo-mountie[bot]","login":"repo-mountie[bot]","count":3}],"past_year_committers":[],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fghg-emissions-indicator/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-12T00:00:14.515Z","repositories_count":6212869,"commits_count":904005609,"contributors_count":34944372,"owners_count":1143929,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"bcgov/ghg-emissions-indicator","html_url":"https://github.com/bcgov/ghg-emissions-indicator","last_synced_at":"2026-04-10T19:02:15.747Z","status":"error","issues_count":7,"pull_requests_count":8,"avg_time_to_close_issue":6907385.142857143,"avg_time_to_close_pull_request":1306299.0,"issues_closed_count":7,"pull_requests_closed_count":8,"pull_request_authors_count":4,"issue_authors_count":2,"avg_comments_per_issue":0.8571428571428571,"avg_comments_per_pull_request":0.5,"merged_pull_requests_count":8,"bot_issues_count":5,"bot_pull_requests_count":2,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"created_at":"2023-05-09T10:38:59.591Z","updated_at":"2026-04-10T19:02:15.748Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fghg-emissions-indicator","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fghg-emissions-indicator/issues","issue_labels_count":{},"pull_request_labels_count":{"in progress":1},"issue_author_associations_count":{"CONTRIBUTOR":7},"pull_request_author_associations_count":{"MEMBER":3,"COLLABORATOR":3,"CONTRIBUTOR":2},"issue_authors":{"repo-mountie[bot]":5,"chrispmad":2},"pull_request_authors":{"KarHarker":3,"repo-mountie[bot]":2,"ateucher":2,"stephhazlitt":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-12T00:00:13.218Z","repositories_count":14232801,"issues_count":34655791,"pull_requests_count":113132276,"authors_count":11233113,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{},"past_year_pull_request_author_associations_count":{},"past_year_issue_authors":{},"past_year_pull_request_authors":{},"maintainers":[{"login":"KarHarker","count":3,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/KarHarker"},{"login":"ateucher","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/ateucher"},{"login":"stephhazlitt","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/stephhazlitt"}],"active_maintainers":[]},"events":{"total":{"PushEvent":1},"last_year":{}},"keywords":["data-science","env","r","rstats"],"dependencies":[],"score":4.248495242049359,"created_at":"2023-09-11T14:52:10.915Z","updated_at":"2026-04-13T20:30:12.478Z","avatar_url":"https://github.com/bcgov.png","language":"R","category":"Emissions","sub_category":"Emission Observation and Modeling","monthly_downloads":0,"total_dependent_repos":0,"total_dependent_packages":0,"readme":"\u003c/a\u003e[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n![img](https://img.shields.io/badge/Lifecycle-Stable-97ca00)\n\n# Trends in Greenhouse Gas Emissions in B.C.  \n \nA set of R scripts to populate an indicator on trends in greenhouse gas emissions in British Columbia. These scripts reproduce the results and graphs published on [Environmental Reporting BC](http://www.env.gov.bc.ca/soe/indicators/sustainability/ghg-emissions.html).\n\n## Usage\n\n### Data\n[British Columbia Greenhouse Gas Emissions](https://catalogue.data.gov.bc.ca/dataset/24c899ee-ef73-44a2-8569-a0d6b094e60c) data are sourced from the [B.C. Data Catalogue](https://catalogue.data.gov.bc.ca/dataset?download_audience=Public), released under the\n[Open Government Licence - British Columbia](http://www2.gov.bc.ca/gov/content/governments/about-the-bc-government/databc/open-data/open-government-license-bc).\n\nBritish Columbia population estimates ([Table: 17-10-0005-01](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1710000501)) and gross domestic product ([Table: 36-10-0222-01](https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=3610022201)) data are sourced from [Statistics Canada](https://www.statcan.gc.ca/eng/start), released under the [Statistics Canada Open Licence Agreement](https://www.statcan.gc.ca/eng/reference/licence). \n\n### Code\nThere are three core scripts that are required for the indicator, they need to be run in order:\n\n- 01_load.R\n- 02_clean.R\n- 03_output.R\n\nThe `run_all.R` script can be `source`ed to run it all at once.\n\nMost packages used in the analysis can be installed from CRAN using `install.packages()`, but you will need to install [envreportutils](https://github.com/bcgov/envreportutils) using remotes:\n\n```r\ninstall.packages(\"remotes\") # If you don't already have it installed\n\nremotes::install_github(\"bcgov/envreportutils\")\n\n```\n#### Data pre-processing\n\nIf you are updating the indicator, there is an additional pre-processing script found in the [`envreportbc-snippets`](https://github.com/bcgov/envreportbc-snippets/tree/master/process-ghg-pi-table) package. The scripts are required to process the [Provincial Inventory](https://www2.gov.bc.ca/gov/content/environment/climate-change/data/provincial-inventory) data. \n\n## Getting Help or Reporting an Issue\n\nTo report bugs/issues/feature requests, please file an [issue](https://github.com/bcgov/ghg-emissions-indicator/issues).\n\n## How to Contribute\n\nIf you would like to contribute, please see our [CONTRIBUTING](CONTRIBUTING.md) guidelines.\n\nPlease note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.\n\n## License\n\n    Copyright 2023 Province of British Columbia\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at \n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n    \nThis repository is maintained by [Environmental Reporting BC](http://www2.gov.bc.ca/gov/content?id=FF80E0B985F245CEA62808414D78C41B). Click [here](https://github.com/bcgov/EnvReportBC) for a complete list of our repositories on GitHub.\n","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":["soe"],"project_url":"https://ost.ecosyste.ms/api/v1/projects/20219","html_url":"https://ost.ecosyste.ms/projects/20219"}