Error message

  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home3/gardeoi3/public_html/iamrandom/modules/book/book.module).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home3/gardeoi3/public_html/iamrandom/includes/common.inc).

Progress bar

I usually use a print() statement within for loops but this progress bar seems better.  I wish packages had this included.

Q = 10000
pb = txtProgressBar(min = 0, max = Q, style = 3)
for(i in 1:Q)
{
  Sys.sleep(0.01)
  setTxtProgressBar(pb, i)
}
close(pb)

Tags: