gpw13 / billionaiRe

Calculate the WHO Triple Billions
https://gpw13.github.io/billionaiRe/
GNU General Public License v3.0
7 stars 4 forks source link

Introducing recycling functions #34

Closed ElliottMess closed 2 years ago

ElliottMess commented 2 years ago

PR introduces recycling functions. It adds two export functions: recycle_data (R/recycle_data.R) and remove_recycled_data (R/remove_recycleddata.R), and modifies the `transform` functions to add a recycle parameter, with an ellipsis for additional parameters.

See the recycling data section of the scenarios vignette for details on expected use.

Unit testing is introduced for the billions calculations, and for recycling functions.

Few other functions are modified to correct bugs and remove warnings that arose after introduction of tests and new functions.

ElliottMess commented 2 years ago

Closing as many new changes introduce by mistake.