- using R Under development (unstable) (2026-09-06 r90498 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-09-07 23:05:00 UTC
- checking for file 'dyn/DESCRIPTION' ... OK
- this is package 'dyn' version '0.2-9.6'
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'dyn' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [4s] NOTE
Found calls to structure() using deprecated special names:
dyn/demo/dyn-na.R (.Dim: 1, .Dimnames: 1)
dyn/tests/vcovHAC.R (.Dim: 1, .Dimnames: 1)
'.Dim' should be changed to 'dim'.
'.Dimnames' should be changed to 'dimnames'.
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [1s] ERROR
Running examples in 'dyn-Ex.R' failed
The error most likely occurred in:
> ### Name: dyn
> ### Title: dynamic regression class
> ### Aliases: dyn $.dyn model.frame.dyn model.frame.irts model.frame.its
> ### model.frame.ts model.frame.zoo model.frame.zooreg model.matrix.dyn
> ### predict.dyn predict.ts predict.zoo fitted.dyn fitted.ts fitted.zoo
> ### residuals.dyn residuals.ts residuals.zoo update.dyn anova.dyn
> ### fitted.irts fitted.its fitted.zooreg predict.irts predict.its
> ### predict.zooreg residuals.irts residuals.its residuals.zooreg
> ### Keywords: regression
>
> ### ** Examples
>
> y <- ts(1:12, start = c(2000,2), freq = 4)^3
> x <- ts(1:9, start = c(2000,3), freq = 4)^2
>
> # can be used with numerous different regression functions
> y.lm <- dyn$lm( window(y, start = c(2000,4)) ~ diff(x) )
> y.lm <- dyn$lm( y ~ diff(x) )
> y.glm <- dyn$glm( y ~ diff(x) )
> y.loess <- dyn$loess( y ~ diff(x) )
>
> y.lm <- dyn(lm(dyn(y ~ diff(x)))) # same
> y.lm
Call:
lm(formula = y ~ diff(x), data = dyn(y ~ diff(x)))
Coefficients:
(Intercept) diff(x)
-303 68
> summary(y.lm)
Call:
lm(formula = y ~ diff(x), data = dyn(y ~ diff(x)))
Residuals:
Min 1Q Median 3Q Max
-102.00 -75.00 -18.00 51.75 147.00
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -303.000 87.975 -3.444 0.013731 *
diff(x) 68.000 7.998 8.502 0.000145 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 103.7 on 6 degrees of freedom
(4 observations deleted due to missingness)
Multiple R-squared: 0.9234, Adjusted R-squared: 0.9106
F-statistic: 72.29 on 1 and 6 DF, p-value: 0.0001449
> residuals(y.lm)
Qtr1 Qtr2 Qtr3 Qtr4
2000 126
2001 27 -48 -93 -102
2002 -69 12 147
> fitted(y.lm)
Qtr1 Qtr2 Qtr3 Qtr4
2000 -99
2001 37 173 309 445
2002 581 717 853
> y2.lm <- update(y.lm, . ~ . + lag(x,-1))
Error in as.data.frame.default(data) :
cannot coerce class 'c("dyn", "formula")' to a data.frame
Calls: update ... model.frame.default -> as.data.frame -> as.data.frame.default
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [2s] OK
Running 'vcovHAC.R' [2s]
- checking PDF version of manual ... [19s] OK
- checking HTML version of manual ... [1s] OK
- DONE
Status: 1 ERROR, 1 NOTE