We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a follow-up of #101.
form <- as.formula("outcome ~ wfns") with(df, roc(form))
Throws an error:
Erreur dans eval(substitute(expr), data, enclos = parent.frame()) : argument 'envir' incorrect de type 'closure' 3: eval(substitute(expr), data, enclos = parent.frame()) 2: with.default(df, roc(form)) 1: with(df, roc(form))
The text was updated successfully, but these errors were encountered:
Note that this style also doesn't work with standard R functions such as glm:
glm
form <- as.formula("outcome ~ wfns") with(df, glm(form))
This is because it is the environment of the formula which matters. So that works instead:
form <- with(aSAH, as.formula("age ~ ndka")) glm(form)
And it works as well with pROC currently:
form <- with(aSAH, as.formula("outcome ~ wfns")) roc(form)
Sorry, something went wrong.
Try harder to find attached data (#111)
18bd75a
The solution is pretty ugly and may not be optimal, but the combination is now working and tested.
There will probably be edge cases where it doesn't work and the search should be loosened further. However it works in testthat tests.
No branches or pull requests
This is a follow-up of #101.
Throws an error:
The text was updated successfully, but these errors were encountered: