-
-
Notifications
You must be signed in to change notification settings - Fork 872
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
Progress bar for non-interactive contexts #2221
Comments
This sort of progress bar also works a little more nicely if you are logging data to
|
One way to determine which progress bar to use would be to implement something like |
This feature request is definitely reasonable. I wonder how hard it is to approximate isatty(getOption("knitr.progress.output", stdout())) || rstudioapi::isAvailable() |
@yihui this would only be used if cli wasn't installed, right? IOTW is ok for knitr to suggest cli? @gaborcsardi can you answer Yihui's question? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Not perfect, but it is something. Are the build pane and the render pane relevant? They have You could also try to include other GUIs, see |
@hadley Yes, I'll definitely suggest cli.
@gaborcsardi This is just a fallback (when cli is not available) so doesn't need to be perfect. I just tested it and Thanks! |
OTOH the job pane did not have You could also copy this file, it should be self-contained. But yeah, for a fallback a good-enough solution is perfectly fine. |
Now the bar will be suppressed when |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I think it would be useful for knitr to bundle a progress bar that's well suited to non-interactive contexts (i.e. when you're logging to a file and
\r
doesn't work). Here's one that I've been playing around this:By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: