Running 'test-all.R' [6s]
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.5/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-23_12-40-23.6278872d67457c1433xml
  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.5/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.5/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.5/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