-
Notifications
You must be signed in to change notification settings - Fork 12
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
Colour in handler_progress #106
Comments
I added I think rendering progress as foreground/background color is a good candidate for a feature request for the progress package. If added there, it'll be automatically supported by |
Forgot to say, progress supports coloring the |
Gotcha re Anyway wrapping the value of the argument The only disadvantage (and sorry this is a bit out of topic here) in using crayon is that the styles don't change depending on the RStudio theme. Eg if using |
Support for cli has been added for the next release (#123). Support for background colors with progress has to be fixed in the progress package, which pending a bug fix, cf. r-lib/progress#78.
I looked at the That leaves the |
Is there a way to change the colour of the progress bar in handler_progress? Or another handler?
Possibly something like this?
handler_progress(format = ":spin :current/:total (:message) [:bar] :percent in :elapsed ETA: :eta", width = 60, complete = "+", color = function(s) crayon::black(s))
Or perhaps by adding "format", "width" and "complete_char" arguments to handler_pbcol?
The text was updated successfully, but these errors were encountered: