insightsengineering / NEST-roadmap

0 stars 0 forks source link

Improve error message when developing `teal` app #76

Open donyunardi opened 2 years ago

donyunardi commented 2 years ago

Summary

A descriptive error message is crucial for users when creating a teal app or module. Currently, stopifnot() is used for assertion in many of teal packages, without overriding the default message. As a result, users will encounter difficulty deciphering the message and may block development progress.

Definition of Done

Triggered by: insightsengineering/teal.transform/issues/99

donyunardi commented 1 year ago

Tasks

Here's a screenshot of the number of lines of code that are still using stopifnot

Per discussion with @pawelru, we will approach this gradually by package instead of tackling them all at once.