-
Notifications
You must be signed in to change notification settings - Fork 1
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
no progress bar with backend = NULL #42
Comments
Hi @MaximilianPi, Thanks for reaching out. Indeed, with Lines 181 to 198 in 2844b4d
Now, it is straightforward to add progress tracking in this case, but I think it is better suited for the task function itself rather than However, I am considering extending the contexts (e.g., For now, you can still achieve the same using the developer API as follows: # Instantiate a `ModernBar`.
bar <- ModernBar$new()
# Create the bar.
bar$create(total = 100, initial = 0, format = "[:bar] :percent :eta", width = getOption("width") / 2)
# Run the task sequentially.
results <- parabar::par_sapply(NULL, 1:100, function(x) {
# Update the progress bar.
bar$update(x)
# Sleep a bit.
Sys.sleep(0.01)
# Compute and return.
x + 1
})
# Terminate the bar.
bar$terminate() I hope this helps. |
Hi @mihaiconstantin
thanks for the great package. Is it intended that there's no progress bar for backend = NULL?:
The text was updated successfully, but these errors were encountered: