Since is.character(list()) is FALSE, I'd expect the check above to return FALSE, too.
I can easily add a checkAtomic check if needed, so I'm not really asking for any change, just curious about the logic. In fact, the current behavior makes one particular check easier: checking for decoded string arrays from jsonlite, since [] decodes to list(). (Perhaps that's exactly the type of example that motivated the current behavior?)
Example:
Since
is.character(list())
isFALSE
, I'd expect the check above to returnFALSE
, too.I can easily add a
checkAtomic
check if needed, so I'm not really asking for any change, just curious about the logic. In fact, the current behavior makes one particular check easier: checking for decoded string arrays fromjsonlite
, since[]
decodes tolist()
. (Perhaps that's exactly the type of example that motivated the current behavior?)checmkate version 2.0.0.