- using R Under development (unstable) (2025-07-21 r88439 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 'pangaear/DESCRIPTION' ... OK
- this is package 'pangaear' version '1.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 'pangaear' can be installed ... OK
See the install log for details.
- 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 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 ... [1s] OK
- checking whether startup messages can be suppressed ... [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 ... [4s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [2s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [7s] ERROR
Running 'test-all.R' [7s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
> library("testthat")
> test_check("pangaear")
Loading required package: pangaear
[ FAIL 6 | WARN 1 | SKIP 8 | PASS 31 ]
══ Skipped tests (8) ═══════════════════════════════════════════════════════════
• On CRAN (8): 'test-oai_functions.R:67:3', 'test-pg_data.R:7:3',
'test-pg_data.R:25:3', 'test-pg_data.R:32:3', 'test-pg_data.R:50:3',
'test-pg_data.R:78:3', 'test-pg_search.r:53:3', 'test-pg_search_es.R:29:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-oai_functions.R:5:5'): pg_identify() works ─────────────────────
Error in `path_to_connection(x)`: '' does not exist in current working directory
('d:/Rcompile/CRANpkg/local/4.6/pangaear.Rcheck/tests/testthat').
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-oai_functions.R:4:3
2. │ └─cassette$call_block(...)
3. └─pangaear::pg_identify() at test-oai_functions.R:5:5
4. └─oai::id(url = baseoai(), ...)
5. ├─plyr::rbind.fill(lapply(url, id_, as = as, ...))
6. └─base::lapply(url, id_, as = as, ...)
7. └─oai (local) FUN(X[[i]], ...)
8. ├─oai:::get_headers(xml_children(xml2::read_xml(tt))[[3]])
9. │ ├─base::lapply(...)
10. │ └─xml2::xml_children(m)
11. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE))
12. ├─xml2::xml_children(xml2::read_xml(tt))
13. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE))
14. ├─xml2::read_xml(tt)
15. └─xml2:::read_xml.character(tt)
16. └─xml2:::path_to_connection(x)
17. └─xml2:::check_path(path)
18. └─cli::cli_abort(msg, call = call)
19. └─rlang::abort(...)
── Error ('test-oai_functions.R:14:5'): pg_list_sets() works ───────────────────
Error in `while_oai(url, args, token, as, ...)`: cannot parse downloaded XML, dumped raw XML to file .\oaidump_2025-07-22_12-34-36.2242833230c75392af5xml
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-oai_functions.R:13:3
2. │ └─cassette$call_block(...)
3. └─pangaear::pg_list_sets() at test-oai_functions.R:14:5
4. └─oai::list_sets(url = baseoai(), token = token, as = as, ...)
5. └─oai:::while_oai(url, args, token, as, ...)
── Error ('test-oai_functions.R:33:5'): pg_list_metadata_formats() works ───────
Error in `path_to_connection(x)`: '' does not exist in current working directory
('d:/Rcompile/CRANpkg/local/4.6/pangaear.Rcheck/tests/testthat').
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-oai_functions.R:32:3
2. │ └─cassette$call_block(...)
3. └─pangaear::pg_list_metadata_formats() at test-oai_functions.R:33:5
4. └─oai::list_metadataformats(url = baseoai(), ...)
5. └─oai:::one_mf(id, url, ...)
6. ├─xml2::read_xml(out)
7. └─xml2:::read_xml.character(out)
8. └─xml2:::path_to_connection(x)
9. └─xml2:::check_path(path)
10. └─cli::cli_abort(msg, call = call)
11. └─rlang::abort(...)
── Error ('test-oai_functions.R:55:5'): pg_get_record() works ──────────────────
Error in `path_to_connection(x)`: '' does not exist in current working directory
('d:/Rcompile/CRANpkg/local/4.6/pangaear.Rcheck/tests/testthat').
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-oai_functions.R:54:3
2. │ └─cassette$call_block(...)
3. └─pangaear::pg_get_record(identifier = "oai:pangaea.de:doi:10.1594/PANGAEA.788382") at test-oai_functions.R:55:5
4. └─oai::get_records(...)
5. ├─stats::setNames(...)
6. └─base::lapply(...)
7. └─oai (local) FUN(X[[i]], ...)
8. ├─xml2::read_xml(tt)
9. └─xml2:::read_xml.character(tt)
10. └─xml2:::path_to_connection(x)
11. └─xml2:::check_path(path)
12. └─cli::cli_abort(msg, call = call)
13. └─rlang::abort(...)
── Error ('test-pg_identify.R:5:5'): pg_identify works ─────────────────────────
Error in `path_to_connection(x)`: '' does not exist in current working directory
('d:/Rcompile/CRANpkg/local/4.6/pangaear.Rcheck/tests/testthat').
Backtrace:
▆
1. ├─vcr::use_cassette(...) at test-pg_identify.R:4:3
2. │ └─cassette$call_block(...)
3. └─pangaear::pg_identify() at test-pg_identify.R:5:5
4. └─oai::id(url = baseoai(), ...)
5. ├─plyr::rbind.fill(lapply(url, id_, as = as, ...))
6. └─base::lapply(url, id_, as = as, ...)
7. └─oai (local) FUN(X[[i]], ...)
8. ├─oai:::get_headers(xml_children(xml2::read_xml(tt))[[3]])
9. │ ├─base::lapply(...)
10. │ └─xml2::xml_children(m)
11. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE))
12. ├─xml2::xml_children(xml2::read_xml(tt))
13. │ └─xml2:::nodeset_apply(x, function(x) .Call(node_children, x, TRUE))
14. ├─xml2::read_xml(tt)
15. └─xml2:::read_xml.character(tt)
16. └─xml2:::path_to_connection(x)
17. └─xml2:::check_path(path)
18. └─cli::cli_abort(msg, call = call)
19. └─rlang::abort(...)
── Failure ('test-pg_search.r:20:3'): pg_search works and stuff, and stuff and things, also, it works ──
aa$supplement_to inherits from `'logical'` not `'character'`.
[ FAIL 6 | WARN 1 | SKIP 8 | PASS 31 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s] OK
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 1 ERROR