* using log directory 'd:/Rcompile/CRANpkg/local/4.5/rcrossref.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 'rcrossref/DESCRIPTION' ... OK * this is package 'rcrossref' version '1.2.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 'rcrossref' 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 ... [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 ... [2s] 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 examples ... [3s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [21m] ERROR Running 'test-all.R' [21m] Running the tests in 'tests/test-all.R' failed. Complete output: > library("testthat") > test_check("rcrossref") Loading required package: rcrossref [ FAIL 18 | WARN 2 | SKIP 4 | PASS 260 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-cr_abstract.R:1:1', 'test-cr_works.R:225:3', 'test-cr_works_.R:97:3', 'test-id_converter.R:24:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-cr_types.R:46:5'): cr_types facet works correctly ──────────── aa$facets inherits from `'NULL'` not `'character'`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_types.R:41:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_is(aa$facets, "list") at test-cr_types.R:46:5 ── Failure ('test-cr_types.R:47:5'): cr_types facet works correctly ──────────── aa$facets$affiliation inherits from `'NULL'` not `'character'`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_types.R:41:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_is(aa$facets$affiliation, "data.frame") at test-cr_types.R:47:5 ── Failure ('test-cr_types.R:48:5'): cr_types facet works correctly ──────────── aa$facets$orcid inherits from `'NULL'` not `'character'`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_types.R:41:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_is(aa$facets$orcid, "data.frame") at test-cr_types.R:48:5 ── Failure ('test-cr_works.R:110:5'): cr_works - parses funders correctly ────── Names of bb$data$funder[[1]] ('DOI', 'name', 'doi.asserted.by', 'id.id', 'id.id.type', 'id.asserted.by') don't match 'DOI', 'name', 'doi.asserted.by' Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:94:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_named(...) at test-cr_works.R:110:5 ── Failure ('test-cr_works.R:120:5'): cr_works - parses funders correctly ────── Names of dd$data$funder[[1]] ('DOI', 'award', 'doi.asserted.by', 'id.asserted.by', 'id.id', 'id.id.type', 'name') don't match 'DOI', 'award', 'doi.asserted.by', 'name' Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:94:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_named(...) at test-cr_works.R:120:5 ── Failure ('test-cr_works.R:127:5'): cr_works - parses funders correctly ────── Names of dd$data$funder[[1]] ('DOI', 'award', 'doi.asserted.by', 'id.asserted.by', 'id.id', 'id.id.type', 'name') don't match 'DOI', 'award', 'doi.asserted.by', 'name' Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:94:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_named(...) at test-cr_works.R:127:5 ── Failure ('test-cr_works.R:134:5'): cr_works - parses funders correctly ────── Names of ee$data$funder[[1]] ('DOI', 'name', 'doi.asserted.by', 'award', 'id.id', 'id.id.type', 'id.asserted.by') don't match 'DOI', 'name', 'doi.asserted.by', 'award' Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:94:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_named(...) at test-cr_works.R:134:5 ── Failure ('test-cr_works.R:140:5'): cr_works - parses funders correctly ────── Names of ff$data$funder[[1]] ('DOI', 'name', 'doi.asserted.by', 'id.id', 'id.id.type', 'id.asserted.by') don't match 'DOI', 'name', 'doi.asserted.by' Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:94:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_named(...) at test-cr_works.R:140:5 ── Failure ('test-cr_works.R:145:5'): cr_works - parses funders correctly ────── Names of gg$data$funder[[1]] ('DOI', 'name', 'doi.asserted.by', 'award', 'id.id', 'id.id.type', 'id.asserted.by') don't match 'DOI', 'name', 'doi.asserted.by', 'award' Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:94:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_named(...) at test-cr_works.R:145:5 ── Failure ('test-cr_works.R:151:5'): cr_works - parses funders correctly ────── Names of hh$data$funder[[1]] ('DOI', 'award', 'award1', 'award2', 'doi.asserted.by', 'id.asserted.by', 'id.id', 'id.id.type', 'name') don't match 'DOI', 'award', 'award1', 'award2', 'doi.asserted.by', 'name' Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-cr_works.R:94:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_named(...) at test-cr_works.R:151:5 ── Failure ('test-cr_works_.R:12:5'): cr_works_ works ────────────────────────── `b` inherits from `'list'` not `'character'`. ── Error ('test-cr_works_.R:16:5'): cr_works_ works ──────────────────────────── Error: Argument 'txt' must be a JSON string, URL or file. Backtrace: ▆ 1. └─rcrossref:::pj(b) at test-cr_works_.R:16:5 2. └─jsonlite::fromJSON(x) at D:\RCompile\CRANpkg\local\4.5\rcrossref.Rcheck\tests\testthat\helper-rcrossref.R:10:7 3. └─jsonlite:::stop("Argument 'txt' must be a JSON string, URL or file.") ── Failure ('test-cr_works_.R:92:5'): cr_works_ - parses funders correctly ───── Names of bb$message$funder ('DOI', 'name', 'doi-asserted-by', 'id') don't match 'DOI', 'name', 'doi-asserted-by' ── Failure ('test-id_converter.R:9:5'): id_converter returns ─────────────────── Names of `a` ('status', 'response-date', 'request', 'records') don't match 'status', 'responseDate', 'request', 'records' Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-id_converter.R:4:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_named(...) at test-id_converter.R:9:5 ── Failure ('test-id_converter.R:11:5'): id_converter returns ────────────────── a$responseDate inherits from `'NULL'` not `'character'`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-id_converter.R:4:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_is(a$responseDate, "character") at test-id_converter.R:11:5 ── Failure ('test-id_converter.R:12:5'): id_converter returns ────────────────── a$request inherits from `'list'` not `'character'`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-id_converter.R:4:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_is(a$request, "character") at test-id_converter.R:12:5 ── Failure ('test-id_converter.R:16:5'): id_converter returns ────────────────── a$records$pmid inherits from `'integer'` not `'character'`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-id_converter.R:4:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_is(a$records$pmid, "character") at test-id_converter.R:16:5 ── Failure ('test-id_converter.R:17:5'): id_converter returns ────────────────── a$records$versions[[1]] inherits from `'NULL'` not `'character'`. Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test-id_converter.R:4:3 2. │ └─cassette$call_block(...) 3. └─testthat::expect_is(a$records$versions[[1]], "data.frame") at test-id_converter.R:17:5 [ FAIL 18 | WARN 2 | SKIP 4 | PASS 260 ] Error: Test failures Execution halted * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [6s] OK * DONE Status: 1 ERROR