checkmate icon indicating copy to clipboard operation
checkmate copied to clipboard

assertString(na.ok = TRUE) does not check whether NA is a character-type

Open avraam-inside opened this issue 2 years ago • 1 comments

checkmate::assertString(NA_real_, na.ok = TRUE)

there is no mistake - but there should be

avraam-inside avatar Oct 03 '22 19:10 avraam-inside

checkmate::assertString() and family are missing the typed.missing parameter that checkmate::assertNumeric() and family offer since https://github.com/mllg/checkmate/pull/199. Would be nice if typed.missing could be added to all relevant checkmate functions.

salim-b avatar Jun 28 '23 23:06 salim-b