Running 'test-all.R' [154s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > library("testthat")
  > test_check("rcrossref")
  Loading required package: rcrossref
  [ FAIL 3 | WARN 6 | SKIP 4 | PASS 285 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cr_citation_count.R:4'): cr_citation_count returns ─────────────
  Error: 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNyb3NzcmVmX3Jlc3VsdCB4bWxucz0iaHR0cDovL3d3dy5jcm9zc3JlZi5vcmcvcXJzY2hlbWEvMi4wIiB2ZXJzaW9uPSIyLjAiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhzaTpzY2hlbWFMb2NhdGlvbj0iaHR0cDovL3d3dy5jcm9zc3JlZi5vcmcvcXJzY2hlbWEvMi4wIGh0dHBzOi8vd3d3LmNyb3NzcmVmLm9yZy9zY2hlbWEvY3Jvc3NyZWZfcXVlcnlfb3V0cHV0Mi4wLnhzZCI+PHF1ZXJ5X3Jlc3VsdD48aGVhZD48ZG9pX2JhdGNoX2lkPm5vbmU8L2RvaV9iYXRjaF9pZD48L2hlYWQ+PGJvZHk+PHF1ZXJ5IHN0YXR1cz0icmVzb2x2ZWQiIGZsX2NvdW50PSIyNSI+PGRvaSB0eXBlPSJqb3VybmFsX2FydGljbGUiPjEwLjEzNzEvam91cm5hbC5wb25lLjAwNDI3OTM8L2RvaT48aXNzbiB0eXBlPSJlbGVjdHJvbmljIj4xOTMyLTYyMDM8L2lzc24+PGpvdXJuYWxfdGl0bGU+UExvUyBPTkU8L2pvdXJuYWxfdGl0bGU+PGNvbnRyaWJ1dG9ycz48Y29udHJpYnV0b3Igc2VxdWVuY2U9ImZpcnN0IiBjb250cmlidXRvcl9yb2xlPSJlZGl0b3IiPjxnaXZlb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gbWVkaWFfdHlwZT0ib25saW5lIj4yMDEyPC95ZWFyPjxwdWJsaWNhdGlvbl90eXBlPmZ1bGxfdGV4dDwvcHVibGljYXRpb25fdHlwZT48YXJ0aWNsZV90aXRsZT5XZWxsLUJlaW5nIGFuZCBTb2NpYWwgQ2FwaXRhbCBvbiBQbGFuZXQgRWFydGg6IENyb3NzLU5hdGlvbmFsIEV2aWRlbmNlIGZyb20gMTQyIENvdW50cmllczwvYXJ0aWNsZV90aXRsZT48L3F1ZXJ5PjwvYm9keT48L3F1ZXJ5X3Jlc3VsdD48L2Nyb3NzcmVmX3Jlc3VsdD4=' does not exist in current working directory ('d:/Rcompile/CRANpkg/local/4.3/rcrossref.Rcheck/tests/testthat').
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-cr_citation_count.R:4:2
   2. │ └─cassette$call_block(...)
   3. └─rcrossref::cr_citation_count(doi = "10.1371/journal.pone.0042793") at test-cr_citation_count.R:6:4
   4.   └─base::lapply(doi, cr_cc, ur = url, key = key, ...)
   5.     └─rcrossref (local) FUN(X[[i]], ...)
   6.       ├─xml2::read_xml(cite_count$parse("UTF-8"))
   7.       └─xml2:::read_xml.character(cite_count$parse("UTF-8"))
   8.         └─xml2:::path_to_connection(x)
   9.           └─xml2:::check_path(path)
  ── Error ('test-cr_cn.R:21'): cr_cn xml types ──────────────────────────────────
  Error: lexical error: invalid char in json text.
                                         eyJzdGF0dXMiOiJvayIsIm1lc3NhZ2U
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-cr_cn.R:21:2
    2. │ └─cassette$call_block(...)
    3. └─rcrossref::cr_cn("10.1126/science.169.3946.635", "rdf-xml") at test-cr_cn.R:22:4
    4.   └─rcrossref (local) cn(dois, ...)
    5.     ├─base::suppressWarnings(GET_agency_id(doi))
    6.     │ └─base::withCallingHandlers(...)
    7.     └─rcrossref:::GET_agency_id(doi)
    8.       └─rcrossref::cr_agency(x)
    9.         └─rcrossref (local) foo(dois, ...)
   10.           └─rcrossref:::cr_GET(...)
   11.             └─jsonlite::fromJSON(res, todf)
   12.               └─jsonlite:::parse_and_simplify(...)
   13.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   14.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-cr_cn.R:77'): cr_cn works with different URLs ──────────────────
  Error: lexical error: invalid char in json text.
                                         eyJzdGF0dXMiOiJvayIsIm1lc3NhZ2U
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─vcr::use_cassette(...) at test-cr_cn.R:77:2
    2. │ └─cassette$call_block(...)
    3. ├─testthat::expect_match(...) at test-cr_cn.R:79:4
    4. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    5. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    6. └─rcrossref::cr_cn("10.1126/science.169.3946.635", "text", url = "https://data.datacite.org")
    7.   └─rcrossref (local) cn(dois, ...)
    8.     ├─base::suppressWarnings(GET_agency_id(doi))
    9.     │ └─base::withCallingHandlers(...)
   10.     └─rcrossref:::GET_agency_id(doi)
   11.       └─rcrossref::cr_agency(x)
   12.         └─rcrossref (local) foo(dois, ...)
   13.           └─rcrossref:::cr_GET(...)
   14.             └─jsonlite::fromJSON(res, todf)
   15.               └─jsonlite:::parse_and_simplify(...)
   16.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
   17.                   └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 3 | WARN 6 | SKIP 4 | PASS 285 ]
  Error: Test failures
  Execution halted