tests/testthat/test-progress.r

context("Progress bars")

library(plyr)

test_that("unknown progress bar raised warning, not error", {
  expect_warning(
    llply(1:10, identity, .progress = "blah"),
    "Cannot find progress bar"
  )
})

test_that("progress bar finishes clean", {
    l_ply(1:100, function(x) Sys.sleep(.01), .progress = "time")
})
gitdek/Roanda documentation built on May 17, 2019, 5:28 a.m.