Skip to content
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

Automatic progress bar should only display when in interactive and not knitting #428

Closed
jimhester opened this issue May 19, 2014 · 2 comments
Closed

Comments

@jimhester
Copy link
Member

@jimhester jimhester commented May 19, 2014

The automatic progress bar for do currently outputs regardless of interactive use or if you are using knitr. Ideally the progress bar should check for both of these conditions.

I believe you can use interactive() to check for an interactive session and knitr sets the global option knitr.in.progress when it is running, or you can probably use the new knitr print functions, although I haven't written anything using them yet. If I get some spare time I can submit a pull request for this, let me know which way you would prefer to handle knitr.

@kforner
Copy link

@kforner kforner commented May 21, 2014

agree. and additional args to explicitly inhibit it, or set the min_time...

@jaengelberg
Copy link

@jaengelberg jaengelberg commented Jul 15, 2014

I agree that it would be nice to either turn off the automatic progress bar or allow the setting of min_time in do.

Using sink and cat for output to a file is disrupted by the automatic progress bar, leaving writeLines as a workaround.

@hadley hadley closed this in #429 Jul 30, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants