Skip to content

Commit

Permalink
Merge pull request #325 from USEPA/release_v1.6.1
Browse files Browse the repository at this point in the history
Release v1.6.1
  • Loading branch information
bl-young authored Nov 4, 2024
2 parents 6d5209a + 13854b4 commit 71489bb
Show file tree
Hide file tree
Showing 72 changed files with 2,076 additions and 454 deletions.
1 change: 0 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
config:
# - {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
#- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ work
inst/doc/**/*.html
renv/
examples
tests/*.xlsx
7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
Package: useeior
Type: Package
Title: USEEIO R modeling software
Version: 1.5.3
Date: 2024-7-13
Version: 1.6.1
Date: 2024-11-4
Authors@R: c(
person("Ben","Young", email="[email protected]", role="aut"),
person("Jorge","Vendries", email="[email protected]", role="aut"),
person("Mo","Li", email="[email protected]", role="aut"),
person("Wesley","Ingwersen", email="[email protected]", role= c("aut", "cre")))
Description: The United States Environmentally-Extended Input-Output model
is a model used to estimate potential environmental and economic impacts
Expand Down Expand Up @@ -41,7 +40,7 @@ License: file LICENSE
Encoding: UTF-8
LazyData: true
LazyDataCompression: xz
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
12 changes: 3 additions & 9 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,16 @@

export(adjustResultMatrixPrice)
export(aggregateResultMatrix)
export(aggregateResultMatrixbyRow)
export(barplotFloworImpactFractionbyRegion)
export(barplotIndicatorScoresbySector)
export(buildIOModel)
export(buildModel)
export(buildTwoRegionModels)
export(calculateEEIOModel)
export(calculateFlowContributiontoImpact)
export(calculateMarginSectorImpacts)
export(calculateSectorContributiontoImpact)
export(calculateSectorPurchasedbySectorSourcedImpact)
export(compare2RCommodityTotals)
export(compareCommodityOutputXMarketShareandIndustryOutputwithCPITransformation)
export(compareCommodityOutputandDomesticUseplusProductionDemand)
export(compareEandLCIResult)
export(compareFlowTotals)
export(compareOutputandLeontiefXDemand)
export(disaggregateTotalToDirectAndTier1)
export(extractAndFormatDemandVector)
export(formatDemandVector)
Expand All @@ -26,10 +20,10 @@ export(heatmapSatelliteTableCoverage)
export(heatmapSectorRanking)
export(normalizeResultMatrixByTotalImpacts)
export(plotMatrixCoefficient)
export(print2RValidationResults)
export(printValidationResults)
export(seeAvailableModels)
export(validate2RCommodityTotals)
export(testCalculationFunctions)
export(testVisualizationFunctions)
export(writeModelMatrices)
export(writeModelforAPI)
export(writeModeltoXLSX)
Expand Down
8 changes: 6 additions & 2 deletions R/AdjustPrice.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ adjustResultMatrixPrice <- function(matrix_name, currency_year, purchaser_price=
}
# Adjust price type of multiplier
if (purchaser_price) {
logging::loginfo(paste("Adjusting", matrix_name, "matrix from producer to purchaser price..."))
mat <- adjustMultiplierPriceType(mat, currency_year, model)
if(is.null(model$Phi)) {
logging::logwarn("Model does not contain margins, purchaser price can not be calculated")
} else {
logging::loginfo(paste("Adjusting", matrix_name, "matrix from producer to purchaser price..."))
mat <- adjustMultiplierPriceType(mat, currency_year, model)
}
} else {
logging::loginfo(paste("Keeping", matrix_name, "matrix in producer price..."))
}
Expand Down
Loading

0 comments on commit 71489bb

Please sign in to comment.