Progress Bar

[This article was first published on r | Trundler, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Trundler’s catalog of retailers and products is growing all the time! Sometimes, it might take a while to return queries that request a lot of data.

That’s why we’ve added a new progress bar feature to the {trundler} R package. We implemented this using the fantastic {progressr} package (available on CRAN).

Here’s a glimpse of it in action!

{progressr} is designed to allow the user to define the progress handler, so for {trundler}, we’ve opted for the default handler. If you want your handler to look like the one above, you can use the following code:

handlers(list(
  handler_progress(
    format   = ":spin :current/:total [:bar] :percent in :elapsed ETA: :eta",
    width    = 80,
    complete = "+"
  )
))

We hope you enjoy this new feature! And let us know if you’d like to suggest any other features for {trundler}.

To leave a comment for the author, please follow the link and comment on their blog: r | Trundler.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)