Check that a list contains only elements of a required type
Source:R/checkListElementClass.R
checkListElementClass.RdCheck that argument is a list and contains only elements of a required type. Throws exception if check is not passed. Note that argument is evaluated when checked.
Examples
xs = as.list(1:3)
checkListElementClass(xs, "numeric")