-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use global option for R package verbosity #3706
Conversation
Using |
@eddelbuettel yes; it's here: @rcurtin modified how function signatures are created. So, now when the bindings detect knn <- function(.,.,..., verbose = getOption("mlpack.verbose", FALSE) ) instead of: knn <- function(.,.,..., verbose = FALSE) |
I realized I also need to update the Markdown documentation; in essence I changed the code so that the table of parameters that gets listed for each binding lists the default of the Now, the line of Markdown in that table will instead be:
|
Sorry about that, I should have been more clear in the description. Here is an example of the newly generated binding:
I also noticed that the documentation for the parameter
I think I didn't forget any other place documentation should be? |
@rcurtin this looks great. I'm going to wait until the R build passes R CMD check/the testthat suite returns an all clear 馃槃 |
Sounds great, fingers crossed 馃槃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Though, need to work on dropping the compile time of the package.
The test failure looks like an unrelated unlucky failure; I don't think the changes here caused it. Someday I will figure out how to isolate that test, but I still have yet to manage to reproduce the issue locally. |
Totally agree. It is getting painful (even more so than it was before, which was already a considerable amount of pain!) and needs some investigation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second approval provided automatically after 24 hours. 馃憤
@rcurtin Just thinking out loud here: maybe What else were you thinking of? |
ccache would probably be helpful, but I think that there is some lower-level improvements that could be made, like compilation flag improvements, or maybe some CMake improvements, I'm not sure. I need to put a few hours into looking into it... |
This fixes #3692 in just the way that @cgiachalis suggested.
Instead of the
verbose
option being printed with a default ofFALSE
(e.g.verbose = FALSE
), it is now printed asverbose = getOption("mlpack.verbose", FALSE)
. That is, it defaults to false unlessmlpack.verbose
has been set (at least to the best of my limited R understanding).I also added tests to make sure that it operates correctly.
@eddelbuettel @coatless let me know what you think here, a double-check would be much appreciated. 馃憤