tests/testthat/test-examples-fastcpd_lm.R

testthat::test_that(
  "examples/fastcpd_lm.R", {
    testthat::skip_if_not_installed("ggplot2")
    testthat::skip_if_not_installed("mvtnorm")

    source("examples/fastcpd_lm.R")
    testthat::expect_equal(result_lm@cp_set, c(97, 201))
    testthat::expect_equal(result_mlm@cp_set, 350)
  }
)

Try the fastcpd package in your browser

Any scripts or data that you put into this service are public.

fastcpd documentation built on May 29, 2024, 8:36 a.m.