- using R version 4.4.2 (2024-10-31)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-8) 14.2.0
GNU Fortran (Debian 14.2.0-8) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘smoothAPC/DESCRIPTION’ ... OK
- this is package ‘smoothAPC’ version ‘0.3’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘smoothAPC’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [3s/4s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/4s] OK
- checking loading without being on the library search path ... [3s/3s] 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 ... [15s/20s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 LazyData ... NOTE
'LazyData' is specified without a 'data' directory
- checking examples ... [3s/4s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [466s/540s] ERROR
Running ‘testthat.R’ [466s/539s]
Running the tests in ‘tests/testthat.R’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
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\
|
/
|
/
-
\
|
/
-
\
|
/
-
\
|
/
-
\ [ FAIL 11 | WARN 0 | SKIP 5 | PASS 16 ]
══ Skipped tests (5) ═══════════════════════════════════════════════════════════
• On CRAN (3): 'test_twoStepDemogSmooth.R:22:3',
'test_twoStepDemogSmooth.R:32:3', 'test_twoStepDemogSmooth.R:46:3'
• empty test (2): 'test_autoDemogSmooth.R:35:1', 'test_demogSmooth.R:36:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_autoDemogSmooth.R:23:3'): Testing autoSmoothAPC on linear data with noise, effects = FALSE ──
sm$result not equivalent to `m`.
100/100 mismatches (average diff: 11.8)
[1] -3.064 - 1.00 == -4.06449
[2] -12.499 - 1.01 == -13.50885
[3] 4.183 - 1.02 == 3.16266
[4] -12.523 - 1.03 == -13.55349
[5] -2.907 - 1.04 == -3.94701
[6] 0.827 - 1.05 == -0.22257
[7] 1.150 - 1.06 == 0.09028
[8] 1.091 - 1.07 == 0.02097
[9] 1.081 - 1.08 == 0.00111
...
── Failure ('test_autoDemogSmooth.R:30:3'): Testing autoSmoothAPC on linear data with noise, effects = TRUE ──
sm$result not equivalent to `m`.
100/100 mismatches (average diff: 21.7)
[1] -7.821 - 1.00 == -8.821
[2] 30.571 - 1.01 == 29.561
[3] 7.696 - 1.02 == 6.676
[4] 9.790 - 1.03 == 8.760
[5] 7.972 - 1.04 == 6.932
[6] 6.031 - 1.05 == 4.981
[7] 4.101 - 1.06 == 3.041
[8] 2.168 - 1.07 == 1.098
[9] 0.232 - 1.08 == -0.848
...
── Failure ('test_autoDemogSmooth.R:31:3'): Testing autoSmoothAPC on linear data with noise, effects = TRUE ──
sm$yearsEffect not equivalent to `zer`.
100/100 mismatches (average diff: 14.1)
[1] -14.645 - 0 == -14.645
[2] -12.653 - 0 == -12.653
[3] -10.684 - 0 == -10.684
[4] -8.747 - 0 == -8.747
[5] -6.826 - 0 == -6.826
[6] -4.911 - 0 == -4.911
[7] -2.995 - 0 == -2.995
[8] -1.076 - 0 == -1.076
[9] 0.846 - 0 == 0.846
...
── Failure ('test_autoDemogSmooth.R:32:3'): Testing autoSmoothAPC on linear data with noise, effects = TRUE ──
sm$cohortEffect not equivalent to `zer`.
44/100 mismatches (average diff: 6.59)
[1] 23.87 - 0 == 23.87
[2] -17.19 - 0 == -17.19
[3] 3.69 - 0 == 3.69
[11] -19.53 - 0 == -19.53
[12] 21.52 - 0 == 21.52
[13] -15.00 - 0 == -15.00
[14] 3.07 - 0 == 3.07
[21] 3.81 - 0 == 3.81
[22] -16.58 - 0 == -16.58
...
── Failure ('test_demogSmooth.R:19:3'): Testing smoothAPC on linear data with one outlier and w/o ridges, effects = FALSE ──
sm$result not equivalent to `m`.
100/100 mismatches (average diff: 12)
[1] -12.83 - 1.00 == -13.83
[2] 17.64 - 1.01 == 16.63
[3] 38.23 - 1.02 == 37.21
[4] 22.01 - 1.03 == 20.98
[5] 3.29 - 1.04 == 2.25
[6] -5.45 - 1.05 == -6.50
[7] -6.44 - 1.06 == -7.50
[8] -4.40 - 1.07 == -5.47
[9] -2.16 - 1.08 == -3.24
...
── Failure ('test_demogSmooth.R:49:3'): Testing smoothAPC on linear data with one cohort effect and w/o period effects, effects = FALSE ──
sm$result not equivalent to `m`.
100/100 mismatches (average diff: 108)
[1] 475.4 - 1.00 == 474.4
[2] 324.4 - 1.01 == 323.4
[3] 185.5 - 1.02 == 184.4
[4] 82.2 - 1.03 == 81.2
[5] 19.3 - 1.04 == 18.3
[6] -11.0 - 1.05 == -12.0
[7] -20.1 - 1.06 == -21.1
[8] -18.6 - 1.07 == -19.7
[9] -14.5 - 1.08 == -15.6
...
── Failure ('test_demogSmooth.R:60:3'): Testing smoothAPC on linear data with one period effect and w/o cohort effects, effects = FALSE ──
sm$result not equivalent to `m`.
100/100 mismatches (average diff: 114)
[1] -36.1 - 1.00 == -37.1
[2] -36.1 - 1.01 == -37.1
[3] -36.1 - 1.02 == -37.1
[4] -36.0 - 1.03 == -37.1
[5] -36.0 - 1.04 == -37.1
[6] -36.0 - 1.05 == -37.1
[7] -36.0 - 1.06 == -37.1
[8] -36.0 - 1.07 == -37.1
[9] -36.0 - 1.08 == -37.1
...
── Failure ('test_demogSmooth.R:67:3'): Testing smoothAPC on linear data with one period effect and with one cohort effects, effects = FALSE ──
sm$result not equivalent to `m`.
100/100 mismatches (average diff: 212)
[1] 438.3 - 1.00 == 437.3
[2] 287.3 - 1.01 == 286.3
[3] 148.4 - 1.02 == 147.4
[4] 45.2 - 1.03 == 44.1
[5] -17.8 - 1.04 == -18.8
[6] -48.0 - 1.05 == -49.1
[7] -57.1 - 1.06 == -58.2
[8] -55.7 - 1.07 == -56.7
[9] -51.6 - 1.08 == -52.6
...
── Failure ('test_demogSmooth.R:74:3'): Testing smoothAPC on linear data with noise, one period effect and with one cohort effects, effects = TRUE ──
sm$result not equivalent to `m`.
100/100 mismatches (average diff: 111)
[1] 66.9 - 1.00 == 65.9
[2] 117.2 - 1.01 == 116.2
[3] 153.7 - 1.02 == 152.7
[4] 143.4 - 1.03 == 142.4
[5] 122.5 - 1.04 == 121.5
[6] 106.9 - 1.05 == 105.9
[7] 97.5 - 1.06 == 96.5
[8] 91.7 - 1.07 == 90.6
[9] 87.7 - 1.08 == 86.6
...
── Failure ('test_demogSmooth.R:75:3'): Testing smoothAPC on linear data with noise, one period effect and with one cohort effects, effects = TRUE ──
sm$yearsEffect not equivalent to `per`.
100/100 mismatches (average diff: 105)
[1] -206.9 - 0 == -206.9
[2] -180.7 - 0 == -180.7
[3] -157.7 - 0 == -157.7
[4] -138.3 - 0 == -138.3
[5] -122.1 - 0 == -122.1
[6] -108.8 - 0 == -108.8
[7] -97.8 - 0 == -97.8
[8] -88.5 - 0 == -88.5
[9] -80.4 - 0 == -80.4
...
── Failure ('test_demogSmooth.R:76:3'): Testing smoothAPC on linear data with noise, one period effect and with one cohort effects, effects = TRUE ──
sm$cohortEffect not equivalent to `coh`.
44/100 mismatches (average diff: 43.6)
[1] 1223.65 - 1000 == 223.65
[2] -3.36 - 0 == -3.36
[3] -16.16 - 0 == -16.16
[11] -44.54 - 0 == -44.54
[12] 1201.35 - 1000 == 201.35
[13] -12.95 - 0 == -12.95
[14] -17.47 - 0 == -17.47
[21] -109.58 - 0 == -109.58
[22] -44.54 - 0 == -44.54
...
[ FAIL 11 | WARN 0 | SKIP 5 | PASS 16 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE