-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
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
automatically extract learner param description from help page #1661
Comments
This might be helpful openml/openml-r#276 |
Does anyone know something better than this: library(XML)
getLearnerParamHelp = function(fun) {
# the R package containing 'fun' must be loaded
html = capture.output(tools:::Rd2HTML(utils:::.getHelpFile(help(fun))))
html = htmlParse(html)
tab = getNodeSet(html, "//table[@summary='R argblock']")
XML::readHTMLTable(tab[[1]], header = FALSE)
}
library(ranger)
getLearnerParamHelp("ranger") |
Very nice! I'll try to add it to the learnerHelp pr later. |
Closed by #1657 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: