mllg / checkmate

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

checkNamed, assertNamed: unhelpful assretion error message #248

Open mb706 opened 12 months ago

mb706 commented 12 months 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.