Checks class of the list of variables. To be used in functions

.validateInputs(checkList)

Arguments

checkList

list of object to check, e.g. list(varname=c("data.frame", "numeric")). Multiuple strings in the vector are treated as OR.

Value

A warning if the wrong input class is provided.

Examples

x = function(var1) {
    cl = list(var1=c("numeric","character"))
    .validateInputs(cl)
    return(var1^2)
}