* using log directory 'd:/Rcompile/CRANpkg/local/4.3/OmopSketch.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'OmopSketch/DESCRIPTION' ... OK * this is package 'OmopSketch' 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'OmopSketch' can be installed ... 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] 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 ... [7s] OK * 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 R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [40s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [117s] ERROR Running 'testthat.R' [117s] 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(OmopSketch) > > test_check("OmopSketch") Starting 2 test processes [ FAIL 4 | WARN 0 | SKIP 20 | PASS 82 ] ══ Skipped tests (20) ══════════════════════════════════════════════════════════ • On CRAN (20): 'test-mockOmopSketch.R:2:3', 'test-plotInObservation.R:2:3', 'test-summariseClinicalRecords.R:2:3', 'test-summariseClinicalRecords.R:81:3', 'test-summariseClinicalRecords.R:213:3', 'test-summariseInObservation.R:2:3', 'test-summariseInObservation.R:96:3', 'test-summariseInObservation.R:148:3', 'test-summariseInObservation.R:184:3', 'test-summariseConceptCounts.R:2:3', 'test-summariseConceptCounts.R:428:3', 'test-summariseOmopSnapshot.R:2:3', 'test-summariseOmopSnapshot.R:10:3', 'test-summarisePopulationCharacteristics.R:2:3', 'test-summarisePopulationCharacteristics.R:149:3', 'test-summarisePopulationCharacteristics.R:165:3', 'test-summariseRecordCount.R:2:3', 'test-summariseRecordCount.R:92:3', 'test-summariseRecordCount.R:112:3', 'test-summariseRecordCount.R:189:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-summarisePopulationCharacteristics.R:125:3'): summarisePopulationCharacteristics() works ── Expected `... <- NULL` to run without any errors. i Actually got a with text: `variable_name` must not contain NA. ── Error ('test-summarisePopulationCharacteristics.R:130:3'): summarisePopulationCharacteristics() works ── Error in `eval(code, test_env)`: object 'summarisedPopulation' not found Backtrace: ▆ 1. ├─testthat::expect_true(inherits(summarisedPopulation, "summarised_result")) at test-summarisePopulationCharacteristics.R:130:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::inherits(summarisedPopulation, "summarised_result") ── Failure ('test-summarisePopulationCharacteristics.R:183:3'): summarisePopulationCharacteristics() works with mockOmopSKetch ── Expected `summarisedPopulation <- summarisePopulationCharacteristics(cdm = cdm)` to run without any errors. i Actually got a with text: `variable_name` must not contain NA. ── Error ('test-summarisePopulationCharacteristics.R:186:3'): summarisePopulationCharacteristics() works with mockOmopSKetch ── Error in `eval(code, test_env)`: object 'summarisedPopulation' not found Backtrace: ▆ 1. ├─testthat::expect_true(inherits(summarisedPopulation, "summarised_result")) at test-summarisePopulationCharacteristics.R:186:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─base::inherits(summarisedPopulation, "summarised_result") [ FAIL 4 | WARN 0 | SKIP 20 | PASS 82 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [264s] ERROR Error(s) in re-building vignettes: --- re-building 'A-summarise_clinical_tables_records.Rmd' using rmarkdown --- finished re-building 'A-summarise_clinical_tables_records.Rmd' --- re-building 'B-summarise_concept_counts.Rmd' using rmarkdown trying URL 'https://example-data.ohdsi.dev/GiBleed.zip' Content type 'application/zip' length 6754786 bytes (6.4 MB) ================================================== downloaded 6.4 MB --- finished re-building 'B-summarise_concept_counts.Rmd' Warning: Connection is garbage-collected, use dbDisconnect() to avoid this. --- re-building 'C-summarise_pop_characteristics.Rmd' using rmarkdown trying URL 'https://example-data.ohdsi.dev/GiBleed.zip' Content type 'application/zip' length 6754786 bytes (6.4 MB) ================================================== downloaded 6.4 MB Quitting from lines 57-60 [unnamed-chunk-3] (C-summarise_pop_characteristics.Rmd) Error: processing vignette 'C-summarise_pop_characteristics.Rmd' failed with diagnostics: `variable_name` must not contain NA. --- failed re-building 'C-summarise_pop_characteristics.Rmd' Warning: Connection is garbage-collected, use dbDisconnect() to avoid this. SUMMARY: processing the following file failed: 'C-summarise_pop_characteristics.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 2 ERRORs