I'm getting the error message that "cyl" not found. Pretty sure it has to do with tidy eval, but I can't figure out what else I need to do.
check_percent_fun = function(df, var){
apply(df, MARGIN=2, stopifnot("not greater than 0" =
{{var}} > 0 )
)
}
check_percent_fun(mtcars, cyl)