wpgp / wopr

An R package and Shiny application to provide API access to the WorldPop Open Population Repository (WOPR)
https://apps.worldpop.org/woprVision
GNU General Public License v3.0
36 stars 7 forks source link

Remove age sex table from internal wopr object #26

Closed edarin closed 3 years ago

edarin commented 3 years ago

It answers to #24

It makes use of the API endpoint: /v1/wopr/proportionsagesex?iso3=NGA&ver=1.2&id=null

@doug-leasure careful before merging as I set dev back to T and SLE v2.0 is not yet approved by partners.

doug-leasure commented 3 years ago

@edarin This looks great to me. It works when I run it locally. Have you tested it on the dev server?

P.S. Thanks for spotting the issue in getPopSql.R!

doug-leasure commented 3 years ago

@edarin In version_info.csv (woprUtils folder on WorldPop drive), I have changed SLE v2.0 to active = FALSE and I rebuilt sysdata.rda. This will prevent SLE v2.0 from being displayed on the production server when dev <- FALSE in global.R.

doug-leasure commented 3 years ago

@edarin I also removed the section of woprUtils/scripts/6 woprVision_global.R that creates the agesex tables internally for wopr.