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

Progress bar for downloads with get_data #34

Open
AldoCompagnoni opened this issue Mar 16, 2017 · 1 comment
Open

Progress bar for downloads with get_data #34

AldoCompagnoni opened this issue Mar 16, 2017 · 1 comment

Comments

@AldoCompagnoni
Copy link
Contributor

AldoCompagnoni commented Mar 16, 2017

Can we devise a progress bar to show progress when downloading data sets using get_data?

@bochocki
Copy link
Contributor

The "progress" package may be helpful here. From the docs (https://cran.r-project.org/web/packages/progress/progress.pdf)

Tokens
They can be used in the format argument when creating the progress bar.

:bar The progress bar itself.
:current Current tick number.
:total Total ticks.
:elapsed Elapsed time in seconds.
:eta Estimated completion time in seconds.
:percent Completion percentage.
:rate Download rate, bytes per second. See example below.
:bytes Shows :current, formatted as bytes. Useful for downloads or file reads if you don’t know
the size of the file in advance. See example below.
:spin Shows a spinner that updates even when progress is advanced by zero.

Custom tokens are also supported, and you need to pass their values to progress_bar$tick() or
progress_bar$update(), in a named list. See example below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants