DOI-USGS / loadflex

Models and Tools for Watershed Flux Estimates
http://dx.doi.org/10.1890/ES14-00517.1
Other
14 stars 17 forks source link

Remove all unnecessary code from aggregateSolute #220

Open aappling-usgs opened 7 years ago

aappling-usgs commented 7 years ago

Issue #199 and PR #219 are converting aggregateSolute to an internal function (deprecated for external use) and avoiding using it for uncertainty calculations. This is avoidance is appropriate even if someone doggedly keeps calling it as loadflex:::aggregateSolute, so I think we can take out a ton of the code currently in this function. A minimal function is a maintainable function. Arguments that are no longer necessary can be removed, leaving in a ... argument, then checking ... for named arguments that have been removed and giving an informative warning about them.