- using R version 4.1.2 (2021-11-01)
- using platform: x86_64-apple-darwin17.0 (64-bit)
- using session charset: UTF-8
- checking for file ‘NHSRplotthedots/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘NHSRplotthedots’ version ‘0.1.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 ‘NHSRplotthedots’ can be installed ... [4s/4s] OK
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking dependencies in R code ... NOTE
Namespaces in Imports field not imported from:
‘NHSRdatasets’ ‘grid’ ‘utils’
All declared Imports should be used.
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [3s/3s] OK
- checking Rd files ... [0s/0s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/6s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [6s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure (test-ptd_create_ggplot.R:79:3): it returns a ggplot object ─────────
p$labels (`actual`) not equal to list(...) (`expected`).
`actual$title`: "SPC Chart of Y, starting 01/01/2020"
`expected$title`: "SPC Chart of Y, starting 02/01/2020"
── Failure (test-ptd_create_ggplot.R:299:3): it sets the main title correctly ──
p1$labels$title (`actual`) not equal to "SPC Chart of Y, starting 02/01/2020" (`expected`).
`actual`: "SPC Chart of Y, starting 01/01/2020"
`expected`: "SPC Chart of Y, starting 02/01/2020"
[ FAIL 2 | WARN 0 | SKIP 3 | PASS 430 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking running R code from vignettes ... [1s/1s] NONE
‘deviations.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘intro.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘number-of-points-required.Rmd’ using ‘UTF-8’... [0s/0s] OK
- checking re-building of vignette outputs ... [14s/18s] OK
- checking PDF version of manual ... OK
- DONE
Status: 1 ERROR, 1 NOTE
- using check arguments '--no-clean-on-error '