tests/tinytest.R

if(requireNamespace("tinytest", quietly = TRUE)) {

  set.seed(42)
  home <- length(unclass(packageVersion("BVAR"))[[1]]) == 4 # 0.0.0.9000
  # home <- TRUE
  if(home) { # Only run locally, let CRAN test examples and the vignette
    tinytest::test_package("BVAR", at_home = home, pattern = "^.*\\.[rR]$")
  }
}
nk027/bvar documentation built on Nov. 16, 2024, 10:03 a.m.