Changelog
Source:NEWS.md
tiltIndicator 0.0.0.9230 (2025-02-19)
- Assign
NAto profile ranking for products which have only oneactivity_uuid_product_uuidfor reference groupunit_isic_4digit(#823).
tiltIndicator 0.0.0.9229 (2025-02-16)
- For
emission_profile()indicator, include all products with no results for a company at product level (#822).
tiltIndicator 0.0.0.9228 (2024-06-26)
The benchmark for
emissions_profile()is changed fromtilt_sectortotilt_subsector(@kalashsinghal #799).The benchmark for
emissions_profile_upstream()is changed frominput_tilt_sectortoinput_tilt_subsector(@kalashsinghal #799).
tiltIndicator 0.0.0.9227 (2024-06-25)
Developer-oriented changes:
-
example_products()gains the columntilt_subsector()(@kalashsinghal #803).
tiltIndicator 0.0.0.9226 (2024-06-24)
- Prune needless dependencies (ggplot2 and R/utils-tidy-eval.R) (#798).
tiltIndicator 0.0.0.9225 (2024-06-17)
Developer-oriented changes for code reuse:
check_crucial_names()is now reusable via a standalone file (#796).export
epa_at_company_level()andinsert_row_with_na_in_risk_category()are now exported as internal (@kalashsinghal #795).categorize_risk()is now exported as internal (@kalashsinghal #793).
tiltIndicator 0.0.0.9224 (2024-06-03)
Developer-oriented changes for code reuse:
-
spa_compute_profile_ranking()andspa_compute_profile_ranking()is now exported as internal, and documented along withepa_compute_profile_ranking()under the topic?spa_compute_profile_ranking(#791).
tiltIndicator 0.0.0.9223 (2024-05-20)
-
sector_profile()now accounts for unmatchedtype,sectororsubsector(@Tilmon #739). For example, given aclusteredmatching one but not a secondtypeof scenario, when thescenariosdataset has the two types, then the secondtypeand its correspondingscenarioare still present ingrouped_by, and the mismatch is reflected correctly in thevalue.
tiltIndicator 0.0.0.9221 (2024-05-07)
- The developer-oriented
example_data_factory()is now exported so it can be reused elsewhere (#776).
tiltIndicator 0.0.0.9218 (2024-04-22)
- New developer oriented (internal) function
document_tilt_profile()(#770). This makes it easy to consistently document the output of any profile function.
tiltIndicator 0.0.0.9217 (2024-04-22)
-
Rename ‘profile’ to ‘tilt_profile’ to avoid clash the with
stats::profile()(#769). Specifically:- The class ‘profile’ is now renamed to ‘tilt_profile’.
- The constructor
profile()is now renamed totilt_profile(). - The predicate
is_profile()is now renamed tois_tilt_profile().
tiltIndicator 0.0.0.9216 (2024-04-22)
-
New class ‘profile’, and related developer-oriented (internal) functions (#768):
- New constructor
tilt_profile(). - New predicate
is_tilt_profile().
- New constructor
tiltIndicator 0.0.0.9215 (2024-04-19)
-
summarize_range()is now a generic function with methods for both data frames and list of data frames (#764).
tiltIndicator 0.0.0.9213
-
summarize_range()now defaults tona.rm = FALSE(#747). This is most common and conservative.
tiltIndicator 0.0.0.9212
-
summarize_range()gainsna.rmand defaults to removing missing values (#743).
tiltIndicator 0.0.0.9211
- The
sector*()functions now preserve unmatched products (@AnneSchoenauer @Tilmon #738). This changes the structure of the output at company level, which now has four levels of risk_category: “high”, “low”, “medium”, andNA.
tiltIndicator 0.0.0.9209
- The
emissions*()functions now preserve unmatched products and missing benchmarks (@AnneSchoenauer @Tilmon #639). This changes the structure of the output at company level, which now has four levels ofrisk_category: “high”, “low”, “medium”, andNA.
tiltIndicator 0.0.0.9205
- The datasets that moved to tiltToyData are now retired (#722). They have been deprecated for about 6 months now.
tiltIndicator 0.0.0.9204
- Remove the article ‘Handling long runtime’ (#723). The tiltIndicator package is no longer suitable for it.
tiltIndicator 0.0.0.9203
- The
xxtr*()functions are now retired (#719). They have been deprecated for about 6 months now.
tiltIndicator 0.0.0.9201
- Change license to GPLv3 (#674).
tiltIndicator 0.0.0.9200
- The documentation of
emissions_profile()is now reviewed (#693 @Tilmon).
tiltIndicator 0.0.0.9109
-
emissions_profile_any_compute_profile_ranking()is now deprecated. This function is now internal (#669).
tiltIndicator 0.0.0.9108
-
emissions_profile_any_compute_profile_ranking()now handles special cases (#644 @kalashsinghal).
tiltIndicator 0.0.0.9107
- The column
*isic_4digitcan now have values of any length (#630 @kalashsinghal).
tiltIndicator 0.0.0.9106
- The percent deviation caused by
jitter*()is now more even (#627).
tiltIndicator 0.0.0.9105
- New helpers
summarize_range()andjitter_range()(#622, @AnneSchoenauer).
tiltIndicator 0.0.0.9104
- All functions now use
companies_idbut still acceptcompany_idwith a warning (#621).
tiltIndicator 0.0.0.9102
- All functions at product level now output the new column
profile_ranking(#613, @AnneSchoenauer).
tiltIndicator 0.0.0.9101
- In results at product level,
clusteredis no longerNAwhenrisk_categoryisNA(#614, @AnneSchoenauer, @kalashsinghal).
tiltIndicator 0.0.0.9100
Get started now shows sector_profile*() documentation (#619).
tiltIndicator 0.0.0.9099
- Rename
emissions_profile_any_add_values_to_categorizetoemissions_profile_any_compute_profile_ranking(#609). The old name is retired without deprecation since it had no users.
tiltIndicator 0.0.0.9098
-
emissions_profile_any_add_values_to_categorize()now relocates the new columns to the left.
tiltIndicator 0.0.0.9097
-
emissions_profile*()usesco2$values_to_categorizeif present (#605).
tiltIndicator 0.0.0.9096
- New pre-processing helper
emissions_profile_any_add_values_to_categorize()(#602).
tiltIndicator 0.0.0.9095
- The values of
grouped_byare now less surprising (see related principle) (#601). They now simply refer to the full name of the corresponding columns in the “co2” dataset (products or inputs) passed to theemissions_profile*()functions. For example, passing a columnproducts$tilt_sectornow yields the value “tilt_sector” ingroup_by– which before got cropped to “tilt_sec”.
tiltIndicator 0.0.0.9094
- The usage of
*rowidcolumns is now documented and is more rigorous (#516):- The name
rowidis now reserved. If any input dataset uses it, the result is an error. - Each
*rowidcolumn now must be unique. Duplicated names now result in an error.
- The name
tiltIndicator 0.0.0.9093
- All profile functions allow passing
*rowidcolumns from input tables to the output at product level (#511).
tiltIndicator 0.0.0.9092
- Rename pre- and post-processing helpers (#503).
tiltIndicator 0.0.0.9091
- Rename indicators in public documentation (#496).
tiltIndicator 0.0.0.9090
-
emissions_profile*()now handles numeric values of*isic_4digit(#494).
tiltIndicator 0.0.0.9089
- Deprecate datasets. They all moved to tiltToyData with new names (#493).
tiltIndicator 0.0.0.9088
- All
*_at_product_level()and*_at_company_level()are now deprecated (#491).
tiltIndicator 0.0.0.9087
-
xctr(data, inputs)is now deprecated in favor or the newemissions_profile_upstream()(#481).
tiltIndicator 0.0.0.9086
-
xctr(data, products)is now deprecated in favor or the newemissions_profile()(#481).
tiltIndicator 0.0.0.9085
-
istr()is now deprecated in favor of the newsector_profile_upstream()(#480).
tiltIndicator 0.0.0.9084
-
pstr()is now deprecated in favor of the newsector_profile()(#479).
tiltIndicator 0.0.0.9083
- Results at company level now preserve unmatched companies (#466).
tiltIndicator 0.0.0.9082
- The article “Handling a long runtime” now shows an enhanced approach (#450).
tiltIndicator 0.0.0.9080
- In
products,activity_uuid_product_uuidis now unique (#447).
tiltIndicator 0.0.0.9077
New
unnest_product()andunnest_company()help get results at product and company levels from nested outputs like the one ofpstr().
tiltIndicator 0.0.0.9076
- Ensure all outputs have no duplicate (#438)
tiltIndicator 0.0.0.9075
- XSTR no longer errors with duplicated scenarios (#437).
tiltIndicator 0.0.0.9074
- For all indicators at product level, each company with some match outputs no
NA, and with no match outputs 1 row withNAs in all columns (exceptcompaneis_id(#436).
tiltIndicator 0.0.0.9073
- For all indicators at company level, each company with a match has 3
values that sum 1 and noNAfor each level ofgrouped_by, and each company with no match has 1valuethat isNAin total (#434).
tiltIndicator 0.0.0.9072
-
xstr_prepare_scenario()with duplicated scenario data now throws an error (#431). This avoids running indicators with corrupt input data and alerts that the preparation must be fixed.
tiltIndicator 0.0.0.9070
- New
xstr_scenariosreplacesistr_scenariosandpstr_scenarios(@kalashsinghal #413).
tiltIndicator 0.0.0.9069
-
pstr_prepare_scenario()is now namedxstr_prepare_scenario()(#385).
tiltIndicator 0.0.0.9068
-
pstr_polish_output_at_copmany_level()is now namedxstr_polish_output_at_copmany_level()(#383).
tiltIndicator 0.0.0.9067
-
xstr_prune_companies()now expects the columncompany_id(#380).
tiltIndicator 0.0.0.9066
- New helper
xstr_prune_companies()to drop rows where product info is ‘NA’ & sector info is duplicated (#379).
tiltIndicator 0.0.0.9065
-
istr_inputsnow includes columns required in the output (@kalashsinghal #376).
tiltIndicator 0.0.0.9064
In XSTR
NAs in reductions are no longer an error but handled specially (@lindadelacombaz #350).In ISTR sample data and code now use the new structure (@kalashsinghal #353).
In ISTR default thresholds are now the same as in XCTR (@lindadelacombaz #348).
tiltIndicator 0.0.0.9063
- XXTR functions now stop if
companieshas 0-rows (#340).
tiltIndicator 0.0.0.9061
- In PSTR default thresholds are now the same as in XCTR (@lindadelacombaz #329).
tiltIndicator 0.0.0.9060
- New
pstr_polish_output_at_company_level()(#327)
tiltIndicator 0.0.0.9059
- The article “Handling long runtime” is now updated based on the experience running
pstr*()(#314).
tiltIndicator 0.0.0.9058
- Each scenario
typemust have somesectorandsubsector, else you an error (#311).
tiltIndicator 0.0.0.9057
-
pstr_prepare_scenario()now handles “weo” data correctly (@kalashsinghal #309).
tiltIndicator 0.0.0.9056
- With
type“ipr”, for each company andgrouped_by,valuesums 1 (#307).
tiltIndicator 0.0.0.9055
- The column
grouped_bynow includes the scenario type (#306). This makes the columngrouped_bycontain all the information inscenarios,year, andtype– meaning that those columns could be removed to keep the output simpler, without loosing information.
tiltIndicator 0.0.0.9054
pstr_at_product_level()now output columns as in the google sheet template (#303).Each
company_id + grouped_bynow gets one low, medium & highrisk_category(#278).
tiltIndicator 0.0.0.9053
- In ISTR the old argument
scenariois now namedscenarios, consistently with PSTR (#299).
tiltIndicator 0.0.0.9052
- In
xstr*(),NAs inreductionsnow trigger an error (#298).
tiltIndicator 0.0.0.9051
- In PSTR the example datasets are now updated (@kalashsinghal #287).
tiltIndicator 0.0.0.9049
New article handling long runtime (#283)
pstr*()gain argumentslow_thresholdandhigh_threshold(@kalashsinghal #273).pstr*()values are now expressed as proportion (@lindadelacombaz #274).
tiltIndicator 0.0.0.9048
-
xctr_at_product_level()now dropsNAs from unmatched products (#267).
tiltIndicator 0.0.0.9047
-
ictr*()andpctr*()are now retired (#264).
tiltIndicator 0.0.0.9046
The data is now simpler:
ictr_companiesandpctr_companiesare now retired. Instead use the new datasetcompanies.pctr_ecoinvent_co2is now renamed toproducts.ictr_inputsis now renamed toinputs.
tiltIndicator 0.0.0.9045
- New
xctr*()replaceictr*()andpctr*()(#256). The functionsictr*()andpctr*()are internal for backward compatibility but will be retired soon.
tiltIndicator 0.0.0.9044
- ICTR and PCTR at product level no longer output needless columns (#251).
tiltIndicator 0.0.0.9043
- In ICTR and PCTR the argument
low_thresholdnow default to 1/3 andhigh_thresholdto 2/3 (#249).
tiltIndicator 0.0.0.9041
- ICTR and PCTR now handle duplicated
co2data (#230).
tiltIndicator 0.0.0.9040
-
*ctr_at_product_level()now outputsclusteredand*_uuid(#242).
tiltIndicator 0.0.0.9039
- In ICTR and PCTR example datasets are now updated (@kalashsinghal #237).
-
pctr_at_product_level()now returns visibly (#239). - ICTR and PCTR now handle duplicated
companiesdata (#230). - In ICTR & PCTR ranking benchmarks are now updated (@kalashsinghal #229).
- In ICTR & PCTR
high_thresholdis now computed correctly (@kalashsinghal #229).
tiltIndicator 0.0.0.9036
- Datasets from the same family are now documented together (#224).
tiltIndicator 0.0.0.9035
-
All company-level functions now output the same four columns:
companies_idgrouped_byrisk_categoryvalue
tiltIndicator 0.0.0.9034
- In ICTR and PCTR the example datasets are now updated (@kalashsinghal #217).
tiltIndicator 0.0.0.9033
-
All top level functions now output the same first four columns (#214):
companies_idgrouped_byrisk_categoryvalue
tiltIndicator 0.0.0.9032
-
ictr_at_product_level()andpctr_at_product_level()now output company data (#213).
tiltIndicator 0.0.0.9031
- In PSTR use new data (@lindadelacombaz #196).
tiltIndicator 0.0.0.9030
In both
ictr()andpctr()the first argument is now namedco2.New internal-ish functions in the xctr family (#207).
tiltIndicator 0.0.0.9029
- In PCTR, if a company matches no input, all shares are now
NA(#205).
tiltIndicator 0.0.0.9028
- In ICTR, if a company matches no input, all shares are now
NA(@kalashsinghal #202).
tiltIndicator 0.0.0.9027
- Even if companies has a *uuid absent in inputs/co2, all shares now sum 1 (@kalashsinghal #197).
tiltIndicator 0.0.0.9026
- All indicators now output ungrouped data (#193)
tiltIndicator 0.0.0.9025
All indicators now export a single and similar top-level interface (#189). The old functions are still available but are are now considered developer-oriented and therefore not visible on the website. The output is also more similar: The first column is always
id, the second column is alwaystransition_risk, and the following column(s) provide score(s).All indicators now output an id for each company and a score (#190).
tiltIndicator 0.0.0.9024
- In ICTR the example data now reflects real data more closely (@kalashsinghal #170).
tiltIndicator 0.0.0.9023
ictr_score_companies()now errors ifinputs_co2hasNAs (@kalashsinghal #150).New article Get started (#152).
tiltIndicator 0.0.0.9021
BREAKING CHANGES
ictr_inputsandictr_companiesloose non-crucial columns(@kalashsingal #117).pctr_ecoinvent_co2andpctr_companiesloose non-crucial columns (#116).
BUG FIXES
ictr_score_companies()andictr_score_companies()now return three rows per company regardless the number of rows in the co2 data (#122).pctr_score_companies()andictr_score_companies()now return three rows per company (@kalashsinghal #111).
tiltIndicator 0.0.0.9018
Document PCTR functions (@kalashsinghal, #104).
New ICTR functions and datasets (@kalashsinghal, #90).
tiltIndicator 0.0.0.9017
- Add ICTR MVP (#90).
tiltIndicator 0.0.0.9016
- The un-prefixed pstr datasets are now retired (#79).
tiltIndicator 0.0.0.9010
Document the
pstr_*()functions (@lindadelacombaz, #50)dev: Rename helper to
render_to_list()(#43).dev: Prune needless helpers (#42).
dev: Rename data-files related to pstr (#41).
dev: Fix CODEOWNERS.
tiltIndicator 0.0.0.9009
- dev: Rename data-files related to pstr so it’s easier to express Linda’s ownership (#41).
tiltIndicator 0.0.0.9008
- dev: Use CODEOWNERS (#39).
tiltIndicator 0.0.0.9007
In
pstr_at_company_level()fix missing argumentcompanies(#38).dev: Address R CMD Check about undefined global variables (#37).
tiltIndicator 0.0.0.9006
- dev: Use new argument to
left_join().
tiltIndicator 0.0.0.9004
- dev: Address dplyr warnings (#32).
tiltIndicator 0.0.0.9003
New
pstr_*()family for product sector transition risk.New
pstr_*()family of PSTR functions.New article “Product sector transition risk” (@lindadelacombaz, #18, #22).