Open donyunardi opened 2 years ago
stopifnot
(checkmate?)checkmate
is the appropriate solution.checkmate
in most of the functions but I still see stopifnot
in several functions.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.
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
stopifnot()
withcheckmate
.teal
app.Triggered by: insightsengineering/teal.transform/issues/99