- using R Under development (unstable) (2024-11-22 r87365)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘DrugUtilisation/DESCRIPTION’ ... OK
- this is package ‘DrugUtilisation’ version ‘0.7.1’
- 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 ‘DrugUtilisation’ can be installed ... [15s/29s] OK
See the install log for details.
- 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 code 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 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 ... [28s/85s] OK
- checking Rd files ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [426s/282s] ERROR
Running ‘testthat.R’ [426s/281s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(DrugUtilisation)
>
> test_check("DrugUtilisation")
Starting 2 test processes
[ FAIL 4 | WARN 24 | SKIP 50 | PASS 69 ]
══ Skipped tests (50) ══════════════════════════════════════════════════════════
• On CRAN (50): 'test-benchmarkDrugUtilisation.R:2:3',
'test-addDrugUtilisation.R:3:3', 'test-addDrugUtilisation.R:156:3',
'test-addDrugUtilisation.R:196:3', 'test-dailyDose.R:2:3',
'test-generateDrugUtilisationCohortSet.R:2:3',
'test-generateDrugUtilisationCohortSet.R:23:3',
'test-generatedAtcCohortSet.R:2:3',
'test-generatedIngredientCohortSet.R:2:3',
'test-generatedIngredientCohortSet.R:39:3',
'test-generatedIngredientCohortSet.R:54:3',
'test-generatedIngredientCohortSet.R:69:3',
'test-generatedIngredientCohortSet.R:98:3', 'test-drugUse.R:2:3',
'test-drugUse.R:42:3', 'test-drugUse.R:259:3', 'test-drugUse.R:463:3',
'test-drugUse.R:608:3', 'test-drugUse.R:860:3', 'test-drugUse.R:883:3',
'test-drugUse.R:932:3', 'test-drugUse.R:967:3', 'test-drugUse.R:1025:3',
'test-patterns.R:2:3', 'test-plotProportionOfPatientsCovered.R:2:3',
'test-plotProportionOfPatientsCovered.R:58:3',
'test-plotProportionOfPatientsCovered.R:100:3', 'test-plotTreatment.R:2:3',
'test-plots.R:2:3', 'test-readConceptList.R:2:3', 'test-require.R:2:3',
'test-require.R:143:3', 'test-require.R:324:3', 'test-require.R:432:3',
'test-require.R:526:3', 'test-require.R:597:3', 'test-indication.R:2:3',
'test-indication.R:202:3', 'test-indication.R:364:3',
'test-indication.R:481:3',
'test-summariseProportionOfPatientsCovered.R:94:3',
'test-summariseProportionOfPatientsCovered.R:170:3',
'test-summariseProportionOfPatientsCovered.R:277:3',
'test-summariseProportionOfPatientsCovered.R:497:3',
'test-summariseProportionOfPatientsCovered.R:550:3', 'test-tables.R:2:3',
'test-tables.R:132:3', 'test-tables.R:271:3', 'test-tables.R:393:3',
'test-tables.R:502:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-summariseDrugRestart.R:76:3'): summarise drug restart ────────
is.na(settings(resultsCohort)$censor_date) is not TRUE
`actual`:
`expected`: TRUE
── Failure ('test-summariseDrugRestart.R:83:3'): summarise drug restart ────────
unique(resultsSup$estimate_value) (`actual`) not equal to c(NA_character_, "0") (`expected`).
`actual`: "-" "0"
`expected`: NA "0"
── Failure ('test-summariseTreatment.R:49:3'): test summariseTreatment ─────────
all(...) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-summariseDrugUtilisation.R:65:3'): summariseDrugUtilisation works ──
all(...) is not TRUE
`actual`: FALSE
`expected`: TRUE
[ FAIL 4 | WARN 24 | SKIP 50 | PASS 69 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [293s/486s] OK
- checking PDF version of manual ... [9s/14s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR