Skip to content

Commit

Permalink
include writing model to excel in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed May 16, 2024
1 parent dde2d8f commit 41bd541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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
2 changes: 2 additions & 0 deletions tests/test_model_build.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ m <- "USEEIOv2.0-GHG"
cfg <- paste0("modelspecs/", m, ".yml")
model <- buildModel(m, configpaths = file.path(cfg))
printValidationResults(model)
writeModeltoXLSX(model, ".")

## USEEIOv2.0 Detail, industry model
model <- useeior:::initializeModel(m, configpaths = file.path(cfg))
Expand Down Expand Up @@ -132,6 +133,7 @@ m <- "GAEEIOv1.0-s-GHG-19"
cfg <- paste0("modelspecs/", m, ".yml")
model <- buildModel(m, configpaths = file.path(cfg))
printValidationResults(model)
writeModeltoXLSX(model, ".")

## StateEEIOv1.0 Two-region Summary model with Import Factors
cfg <- c(paste0("modelspecs/", m, ".yml"),
Expand Down

0 comments on commit 41bd541

Please sign in to comment.