Progress Bar

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}.

Matt Dennis
Matt Dennis
Data Scientist

Related

For more blog posts on R check out R-Bloggers.

For more blog posts on Python check out Python-Bloggers.