checkr icon indicating copy to clipboard operation
checkr copied to clipboard

Need better handling of formulas

Open dtkaplan opened this issue 7 years ago • 0 comments

When capturing a formula with check_blanks, what get's captured is actually the call to generate the formula, not the formula itself. You need to evaluate the formula-call before you can compare it to another formula, e.g.

check_blanks(code, quote(lm(..form.., data = iris)))
failif(eval(form) == (Sepal.Length ~ Species)

This seems awkward.

dtkaplan avatar Feb 20 '18 23:02 dtkaplan