- using R Under development (unstable) (2024-11-15 r87338)
- 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 ‘projections/DESCRIPTION’ ... OK
- this is package ‘projections’ version ‘0.6.0’
- package encoding: UTF-8
- 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 whether package ‘projections’ 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [3s/4s] OK
- checking Rd files ... [0s/0s] NOTE
checkRd: (-1) summary.projections.Rd:33-48: Lost braces
33 | if (require(incidence)) {
| ^
- 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 examples ... [4s/5s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [5s/6s] ERROR
Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(distcrete)
> library(incidence)
> library(projections)
> library(outbreaks)
> library(magrittr)
Attaching package: 'magrittr'
The following objects are masked from 'package:testthat':
equals, is_less_than, not
>
> test_check("projections")
Saving 7 x 7 in image
[ FAIL 3 | WARN 0 | SKIP 19 | PASS 73 ]
══ Skipped tests (19) ══════════════════════════════════════════════════════════
• On CRAN (19): 'test-accessors.R:2:5', 'test-accessors.R:21:5',
'test-build_projections.R:2:5', 'test-build_projections.R:27:5',
'test-build_projections.R:50:5', 'test-build_projections.R:69:5',
'test-conversion.R:2:5', 'test-cumulate.R:2:3', 'test-internals.R:2:5',
'test-plots.R:31:3', 'test-plots.R:107:3', 'test-print.R:2:3',
'test-project.R:67:3', 'test-project.R:137:3', 'test-project.R:196:3',
'test-project.R:265:3', 'test-subset.R:2:5', 'test-subset.R:41:5',
'test-subset.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-project.R:15:3'): Projections can be performed for a single day ──
get_dates(p) (`actual`) not identical to as.Date("2020-01-24") (`expected`).
`actual` is an S3 object of class <Date>, an integer vector
`expected` is an S3 object of class <Date>, a double vector
── Failure ('test-project.R:36:3'): Projections can be performed for a single day ──
get_dates(p) (`actual`) not identical to as.Date("2020-01-24") + 0:1 (`expected`).
`actual` is an S3 object of class <Date>, an integer vector
`expected` is an S3 object of class <Date>, a double vector
── Failure ('test-project.R:58:3'): Projections can be performed for a single day and single simulation ──
get_dates(p) (`actual`) not identical to as.Date("2020-01-24") (`expected`).
`actual` is an S3 object of class <Date>, an integer vector
`expected` is an S3 object of class <Date>, a double vector
[ FAIL 3 | WARN 0 | SKIP 19 | PASS 73 ]
Deleting unused snapshots:
• plots/basic-example-plot.svg
• plots/evd-proj-box-no-outliers.svg
• plots/evd-proj-box-only.svg
• plots/evd-proj-full-red-ribbon-narrow-range.svg
• plots/evd-proj-no-box-custom-lines.svg
• plots/evd-proj-no-ribbon.svg
• plots/evd-proj-red-box.svg
• plots/evd-proj-red-ribbon.svg
• plots/evd-proj-ribbon-only.svg
• plots/evd-proj-with-incidence-incidence-and-custom.svg
• plots/evd-proj-with-incidence-incidence-box-only.svg
• plots/evd-proj-with-incidence-incidence-no-box.svg
• plots/evd-proj-with-incidence-incidence.svg
• plots/evd-proj.svg
Error: Test failures
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE