I have been trying to use checkr with learnr and keep coming across an issue when trying to extract function arguments. I have tried named_arg, function_arg and data_arg and get the same error. Using the examples provided:
code <- for_checkr(quote(lm(mpg ~ hp, data = mtcars)))
formula_arg(code)
checkr result fail with message:
Error : Can't take the names() of the .data pronoun
data_arg(code, insist("hp" %in% names(V), "The data should have a column named 'hp'."))
checkr result fail with message:
Error : Can't take the names() of the .data pronoun
named_arg(code, "data", failif(E == mtcars, "I didn't want mtcars."))
checkr result fail with message:
Error : Can't take the names() of the .data pronoun
I have been trying to use checkr with learnr and keep coming across an issue when trying to extract function arguments. I have tried named_arg, function_arg and data_arg and get the same error. Using the examples provided:
checkr result fail with message: Error : Can't take the
names()
of the.data
pronouncheckr result fail with message: Error : Can't take the
names()
of the.data
pronouncheckr result fail with message: Error : Can't take the
names()
of the.data
pronoun