Skip to content

Commit

Permalink
skip some tests in cran submission
Browse files Browse the repository at this point in the history
  • Loading branch information
ygeunkim committed Dec 18, 2023
1 parent 09b8d07 commit be0ec55
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-forecast.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# VAR----------------------------------
test_that("Test for varlse forecast", {
skip_on_cran()

num_col <- 3
fit_var <- var_lm(etf_vix[, 1:3], 2)
fit_vhar <- vhar_lm(etf_vix[, 1:3])
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-stable-process.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("Stable root", {
skip_on_cran()

test_lag <- 3
num_col <- 2
fit_test_var <- var_lm(etf_vix[, seq_len(num_col)], test_lag)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-summary-varlse.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("VAR Coefficients Summary Table", {
skip_on_cran()

test_lag <- 3
num_col <- 2
fit_test_var <- var_lm(etf_vix[, seq_len(num_col)], test_lag)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-summary-vharlse.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("VHAR Coefficients Summary Table", {
skip_on_cran()

num_col <- 2
fit_test_vhar <- vhar_lm(etf_vix[, seq_len(num_col)])
fit_vhar_summary <- summary(fit_test_vhar)
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-varlse.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# var_lm()-------------------------
test_that("Test for varlse class", {
skip_on_cran()

test_lag <- 3
fit_test_var <- var_lm(etf_vix, test_lag)
num_col <- ncol(etf_vix)
Expand Down Expand Up @@ -34,6 +36,8 @@ test_that("Test for varlse class", {
})

test_that("Computation Methods", {
skip_on_cran()

test_lag <- 3
fit_test_nor <- var_lm(etf_vix[, 1:3], test_lag)
fit_test_llt <- var_lm(etf_vix[, 1:3], test_lag, method = "chol")
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-vharlse.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Components of vharlse--------------
test_that("Test for vharlse class", {
skip_on_cran()

fit_test_vhar <- vhar_lm(etf_vix)
num_col <- ncol(etf_vix)
num_row <- nrow(etf_vix)
Expand Down Expand Up @@ -33,6 +35,8 @@ test_that("Test for vharlse class", {
})

test_that("Computation Methods", {
skip_on_cran()

fit_test_nor <- vhar_lm(etf_vix[, 1:3])
fit_test_llt <- vhar_lm(etf_vix[, 1:3], method = "chol")
fit_test_qr <- vhar_lm(etf_vix[, 1:3], method = "qr")
Expand Down

0 comments on commit be0ec55

Please sign in to comment.