mllg / checkmate

Fast and versatile argument checks
https://mllg.github.io/checkmate/
Other
265 stars 30 forks source link

checkNamed, assertNamed: unhelpful assretion error message #248

Open mb706 opened 1 year ago

mb706 commented 1 year ago
checkNamed(letters)
#> [1] "Must have Object"

f <- function(x) assertNamed(x)
f(letters)
#> Error in f(letters) : Assertion on 'x' failed: Must have Object.

The message is not very descriptive of what is expected here. I know this is deprecated, so feel free to close.