-
Notifications
You must be signed in to change notification settings - Fork 52
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
adding a call back function for custom progress bar in profile()
function (and other computationally intensive functions)
#92
Comments
Could you clarify a bit more what exactly you have in mind? Pretty much all computationally heavy functions in metafor have some kind of way of communicating progress to the user (via |
Yes, that's exactly what I have in mind. We can't catch printed output in the GUI --- but we have a custom functions that can send the signal directly. An example below:
Ideally I would know how many "tick" are gonna happen or also have some additional information about the steps (which I can further forward to the GUI, which would work like this:
but that would be a bit too much to ask :) |
I see. In which functions would you like this added? You metioned |
I also noticed that the |
I think we should sit down together and go through all of the functions where this might apply, since this also depends on what JASP actually makes use of. Please get in touch via email to set something up. |
If you didn't receive an email from me, could you email me at f.bartos96@gmail.com? |
Classification: Feature Request
Summary
It would be nice to have an option to pass a "progress bar tick" function as an argument to the
profile()
function (and other computationally expensive functions). This would allow us, e.g., in JASP, notify users about the computational progress.In the case of the
profile.mv()
function, it could be triggered after each new parameter is finished profiling.E.g., in JASP, we use
jaspBase::progressbarTick()
to incremenet the JASP progress counter. In some of my packages, I allow passing an optional hidden argument that is run aseval(expr = parse(text = "progressbarTick()"))
(which also evades CRANs check for non-CRAN packages --- if it is passed as an argument, any other progress bar could be slot in).Cheers,
Frantisek
The text was updated successfully, but these errors were encountered: