Skip to content

Poppr version 2.8.6

Compare
Choose a tag to compare
@zkamvar zkamvar released this 03 Jun 00:07

poppr 2.8.6

BUG FIX

  • read.genalex() now can import columns with entirely "T" alleles as "T"
    instead of "TRUE". (See #214 for details, thanks to @planteering for pointing it out).

NEW IMPORTS

  • Progress bars are now implemented via the {progressr} package,
    which gives the user control over what should be displayed (or not). For
    example, to get auditory updates instead of a progress bar, you can use the
    "beepr" package and set progressr::handlers("beepr"). This will play an alert
    for each step (~50) and a final sound. To suppress all progress bars entirely,
    you can use progressr::handlers("void"). These progress bars have replaced
    the utils::txtProgressBar() and dplyr::progress_estimated() bars.

Here's a fun demonstration of how you can customize poppr's progress bars, which you can read more about in the {progressr} documentation

if (!require("progress")) install.packages("progress")
library("poppr")
data(Pinf)

library("progressr")
handlers( 
  handler_progress( 
    format = ":spin :current/:total [:bar] :percent in :elapsed ETA: :eta", 
    complete   = "^", 
    incomplete = "_", 
    current    = "😻", 
    clear = FALSE 
  ) 
) 
ia(Pinf, sample = 399, plot = FALSE) 

image of a progress bar advancing across a terminal screen that has an emoji cat with heart-eyes as the current state