From c1f5a218cf64a5af5100beb672ecfc549dd2d237 Mon Sep 17 00:00:00 2001 From: Mauro Lepore Date: Tue, 25 Jun 2024 09:40:52 -0400 Subject: [PATCH 1/2] example_products() gains tilt_subsector (#803) --- R/example_dictionary.R | 1 + tests/testthat/test-example_data.R | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/R/example_dictionary.R b/R/example_dictionary.R index 382f2ab7b..ee354fbca 100644 --- a/R/example_dictionary.R +++ b/R/example_dictionary.R @@ -88,6 +88,7 @@ example_id <- function() { 15L, 3L, 1L, 16L, 1L, 1L, 17L, 1L, 1L, + 17L, 1L, 3L, 18L, 4L, 1L, 14L, 2L, 2L, 15L, 3L, 2L, diff --git a/tests/testthat/test-example_data.R b/tests/testthat/test-example_data.R index a95a70f20..3a6bc4ea1 100644 --- a/tests/testthat/test-example_data.R +++ b/tests/testthat/test-example_data.R @@ -91,3 +91,8 @@ test_that("example_inputs() has co2 data of class 'double'", { out <- example_inputs() expect_type(out[[find_co2_footprint(out)]], "double") }) + +test_that("example_products() has column 'tilt_subsector'", { + out <- example_products() + expect_true(hasName(out, "tilt_subsector")) +}) From 51a546f14454c01391c33ee3e195032d9ccfca05 Mon Sep 17 00:00:00 2001 From: Mauro Lepore Date: Tue, 25 Jun 2024 13:44:00 +0000 Subject: [PATCH 2/2] Bump version to 0.0.0.9227 --- DESCRIPTION | 2 +- NEWS.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index a10d44ad9..48516cd8b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: tiltIndicator Title: Indicators for the 'TILT' Project -Version: 0.0.0.9226 +Version: 0.0.0.9227 Authors@R: c( person("Mauro", "Lepore", , "maurolepore@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "https://orcid.org/0000-0002-1986-7988")), diff --git a/NEWS.md b/NEWS.md index 48f7201ad..850edd05d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,11 @@ +# tiltIndicator 0.0.0.9227 (2024-06-25) + +Developer-oriented changes: + +* `example_products()` gains the column `tilt_subsector()` (@kalashsinghal #803). + # tiltIndicator 0.0.0.9226 (2024-06-24) * Prune needless dependencies (ggplot2 and R/utils-tidy-eval.R) (#798).