bcgov / wqbc

An R package for water quality thresholds and index calculation for British Columbia
http://bcgov.github.io/wqbc/
Apache License 2.0
20 stars 9 forks source link

calc_limits with more informative error messaging #147

Open sebdalgarno opened 4 years ago

sebdalgarno commented 4 years ago

The function does not give any indication to user why limits were not calculated...simply tells them that values were dropped.

Error messaging should be as user-friendly as possible, because they will be captured by the shiny app and displayed verbatim to the user.

sebdalgarno commented 4 years ago

for extra context, the shiny app currently displays a single message if the wqbc::calc_limits returns an error or a data.frame with 0 rows. "There is insufficient data to calculate the water quality guideline. You could try to get a modelled estimate, change the term, or set the guideline manually."

The team want to know more about what's happening behind the scenes...is there insufficient data for that term argument? is there no limit for that Variable?

sebdalgarno commented 4 years ago

related to https://github.com/bcgov/shinyrems/issues/74