tests/testthat/test-progress.R

context("progress bar")

test_that("progress bar work at C++ level", {
  sink(tempfile())
  las = lidR:::generate_las(500)
  options(lidR.progress = TRUE)
  options(lidR.progress.delay = 0)
  expect_error(smooth_height(las, 3), NA)
  options(lidR.progress = FALSE)
  options(lidR.progress.delay = 2)
  sink(NULL)
})
Jean-Romain/lidR documentation built on April 6, 2024, 9:41 p.m.