Skip to content

Commit 54ddf8a

Browse files
add testthat
1 parent e5d4208 commit 54ddf8a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ Suggests:
3636
stringr,
3737
purrr,
3838
tibble,
39-
tidyr
39+
tidyr,
40+
testthat (>= 3.0.0)
4041
Maintainer: Matthieu Stigler <[email protected]>
4142
Description: Implements nonlinear autoregressive (AR) time series models. For univariate series, a non-parametric approach is available through additive nonlinear AR. Parametric modeling and testing for regime switching dynamics is available when the transition is either direct (TAR: threshold AR) or smooth (STAR: smooth transition AR, LSTAR). For multivariate series, one can estimate a range of TVAR or threshold cointegration TVECM models with two or three regimes. Tests can be conducted for TVAR as well as for TVECM (Hansen and Seo 2002 and Seo 2006).
4243
License: GPL (>= 2)
@@ -45,3 +46,4 @@ BugReports: https://github.com/MatthieuStigler/tsDyn/issues
4546
RoxygenNote: 7.3.2
4647
LazyData: true
4748
Encoding: UTF-8
49+
Config/testthat/edition: 3

tests/testthat.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is part of the standard setup for testthat.
2+
# It is recommended that you do not modify it.
3+
#
4+
# Where should you do additional test configuration?
5+
# Learn more about the roles of various files in:
6+
# * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
7+
# * https://testthat.r-lib.org/articles/special-files.html
8+
9+
library(testthat)
10+
library(tsDyn)
11+
12+
test_check("tsDyn")

0 commit comments

Comments
 (0)