* using log directory 'd:/Rcompile/CRANpkg/local/4.5/phsopendata.Rcheck' * using R version 4.5.1 (2025-06-13 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'phsopendata/DESCRIPTION' ... OK * this is package 'phsopendata' version '1.0.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 'phsopendata' can be installed ... OK * checking installed package size ... OK * checking package 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [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] 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 examples ... [5s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [9s] ERROR Running 'testthat.R' [9s] 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(phsopendata) > > test_check("phsopendata") Starting 2 test processes [ FAIL 1 | WARN 0 | SKIP 14 | PASS 62 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • On CRAN (14): 'test-dump_download.R:1:1', 'test-error_check.R:1:1', 'test-get_dataset.R:1:1', 'test-get_dataset_additional_info.R:1:1', 'test-get_dataset_context.R:1:1', 'test-get_resource.R:1:1', 'test-get_resource_context.R:1:1', 'test-get_resource_dump.R:1:1', 'test-get_resource_sql.R:1:1', 'test-list_datasets.R:1:1', 'test-list_resources.R:1:1', 'test-parse_error.R:1:1', 'test-phs_GET.R:1:1', 'test-suggest_dataset_names.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get_latest_resource.R:6:3'): returns data for a dataset that is listed ── Names of `data` ('ResID', 'ResName', 'ResCreatedDate', 'ResModifiedDate', 'Date', 'PracticeCode', 'HB', 'HSCP', 'Sex', 'SexQF', 'AllAges', 'AllAgesQF', 'Ages00to04', 'Ages00to04QF', 'Ages05to09', 'Ages05to09QF', 'Ages10to14', 'Ages10to14QF', 'Ages15to19', 'Ages15to19QF', 'Ages20to24', 'Ages20to24QF', 'Ages25to29', 'Ages25to29QF', 'Ages30to34', 'Ages30to34QF', 'Ages35to39', 'Ages35to39QF', 'Ages40to44', 'Ages40to44QF', 'Ages45to49', 'Ages45to49QF', 'Ages50to54', 'Ages50to54QF', 'Ages55to59', 'Ages55to59QF', 'Ages60to64', 'Ages60to64QF', 'Ages65to69', 'Ages65to69QF', 'Ages70to74', 'Ages70to74QF', 'Ages75to79', 'Ages75to79QF', 'Ages80to84', 'Ages80to84QF', 'Ages85plus', 'Ages85plusQF') don't match 'ResID', 'ResName', 'ResCreatedDate', 'ResModifiedDate', 'Date', 'PracticeCode', 'HB', 'HSCP', 'Sex', 'SexQF', 'AllAges', 'AllAgesQF', 'Ages0to4', 'Ages0To4QF', 'Ages5to14', 'Ages5To14QF', 'Ages15to24', 'Ages15To24QF', 'Ages25to44', 'Ages25To44QF', 'Ages45to64', 'Ages45To64QF', 'Ages65to74', 'Ages65To74QF', 'Ages75to84', 'Ages75To84QF', 'Ages85plus', 'Ages85PlusQF' [ FAIL 1 | WARN 0 | SKIP 14 | PASS 62 ] Error: Test failures Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR