Skip to content

Commit

Permalink
finished supplemental data fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hanase committed Apr 7, 2024
1 parent 5265b93 commit 78b55d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: bayesLife
Type: Package
Title: Bayesian Projection of Life Expectancy
Version: 5.2-0.9006
Version: 5.2-0.9007
Date: 2024-04-06
Author: Hana Sevcikova, Adrian Raftery, Jennifer Chunn
Maintainer: Hana Sevcikova <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion R/wpp_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ set.e0.wpp.extra <- function(meta, countries=NULL, my.e0.file=NULL, my.locations
regions=extra.wpp$regions,
nr.countries.estimation=extra.wpp$nr_countries_estimation,
is_processed = extra.wpp$is_processed)
if(!annual || meta$wpp.year >= 2022) {
if((!annual || meta$wpp.year >= 2022)) && use.wpp.data) {
locations <- bayesTFR:::read.UNlocations(data$data, wpp.year=meta$wpp.year,
my.locations.file=my.locations.file, package='bayesLife', verbose=verbose)
suppl.wpp <- bayesTFR:::.get.suppl.matrix.and.regions(un.object, extra.wpp, locations$loc_data,
Expand Down

0 comments on commit 78b55d2

Please sign in to comment.