Running 'test-all.R' [4s/4s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > library("testthat")
  > test_check("rdatacite")
  Loading required package: rdatacite
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 25 ]
  
  == Failed tests ================================================================
  -- Error ('test-dc_activities.R:4'): dc_activities works -----------------------
  Error: lexical error: invalid char in json text.
                                         eyJkYXRhIjpbeyJpZCI6ImY0NTk0MmQ
                       (right here) ------^
  
  Backtrace:
       x
    1. +-vcr::use_cassette(...) at test-dc_activities.R:4:2
    2. | \-cassette$call_block(...)
    3. \-rdatacite::dc_activities(limit = 10) at test-dc_activities.R:5:4
    4.   +-rdatacite:::as_dc(dc_GET("activities", args, ...), "activities")
    5.   | \-base::structure(x, class = "dc", fun = fun)
    6.   \-rdatacite:::dc_GET("activities", args, ...)
    7.     \-jsonlite::fromJSON(res$parse("UTF-8"))
    8.       \-jsonlite:::parse_and_simplify(...)
    9.         \-jsonlite:::parseJSON(txt, bigint_as_char)
   10.           \-jsonlite:::parse_string(txt, bigint_as_char)
  -- Error ('test-dc_client_prefixes.R:4'): dc_client_prefixes works -------------
  Error: lexical error: invalid char in json text.
                                         eyJkYXRhIjpbeyJpZCI6IjAwMDMtcHI
                       (right here) ------^
  
  Backtrace:
       x
    1. +-vcr::use_cassette(...) at test-dc_client_prefixes.R:4:2
    2. | \-cassette$call_block(...)
    3. \-rdatacite::dc_client_prefixes(limit = 5) at test-dc_client_prefixes.R:5:4
    4.   +-rdatacite:::as_dc(dc_GET("client-prefixes", args, ...), "client-prefixes")
    5.   | \-base::structure(x, class = "dc", fun = fun)
    6.   \-rdatacite:::dc_GET("client-prefixes", args, ...)
    7.     \-jsonlite::fromJSON(res$parse("UTF-8"))
    8.       \-jsonlite:::parse_and_simplify(...)
    9.         \-jsonlite:::parseJSON(txt, bigint_as_char)
   10.           \-jsonlite:::parse_string(txt, bigint_as_char)
  -- Error ('test-dc_clients.R:4'): dc_clients works -----------------------------
  Error: lexical error: invalid char in json text.
                                         eyJkYXRhIjpbeyJpZCI6Imdlc2lzLnJ
                       (right here) ------^
  
  Backtrace:
       x
    1. +-vcr::use_cassette(...) at test-dc_clients.R:4:2
    2. | \-cassette$call_block(...)
    3. \-rdatacite::dc_clients(limit = 5) at test-dc_clients.R:5:4
    4.   +-rdatacite:::as_dc(dc_GET("clients", args, ...), "clients")
    5.   | \-base::structure(x, class = "dc", fun = fun)
    6.   \-rdatacite:::dc_GET("clients", args, ...)
    7.     \-jsonlite::fromJSON(res$parse("UTF-8"))
    8.       \-jsonlite:::parse_and_simplify(...)
    9.         \-jsonlite:::parseJSON(txt, bigint_as_char)
   10.           \-jsonlite:::parse_string(txt, bigint_as_char)
  -- Error ('test-dc_dois.R:4'): dc_dois works -----------------------------------
  Error: lexical error: invalid char in json text.
                                         eyJkYXRhIjpbeyJpZCI6IjEwLjUyODE
                       (right here) ------^
  
  Backtrace:
       x
    1. +-vcr::use_cassette(...) at test-dc_dois.R:4:2
    2. | \-cassette$call_block(...)
    3. \-rdatacite::dc_dois(limit = 5) at test-dc_dois.R:5:4
    4.   +-rdatacite:::as_dc(dc_GET("dois", args, ...), "dois")
    5.   | \-base::structure(x, class = "dc", fun = fun)
    6.   \-rdatacite:::dc_GET("dois", args, ...)
    7.     \-jsonlite::fromJSON(res$parse("UTF-8"))
    8.       \-jsonlite:::parse_and_simplify(...)
    9.         \-jsonlite:::parseJSON(txt, bigint_as_char)
   10.           \-jsonlite:::parse_string(txt, bigint_as_char)
  -- Error ('test-dc_events.R:4'): dc_events works -------------------------------
  Error: lexical error: invalid char in json text.
                                         eyJkYXRhIjpbeyJpZCI6IjY2ZjU2ZDE
                       (right here) ------^
  
  Backtrace:
       x
    1. +-vcr::use_cassette(...) at test-dc_events.R:4:2
    2. | \-cassette$call_block(...)
    3. \-rdatacite::dc_events(limit = 5) at test-dc_events.R:5:4
    4.   +-rdatacite:::as_dc(dc_GET("events", args, ...), "events")
    5.   | \-base::structure(x, class = "dc", fun = fun)
    6.   \-rdatacite:::dc_GET("events", args, ...)
    7.     \-jsonlite::fromJSON(res$parse("UTF-8"))
    8.       \-jsonlite:::parse_and_simplify(...)
    9.         \-jsonlite:::parseJSON(txt, bigint_as_char)
   10.           \-jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 25 ]
  Error: Test failures
  Execution halted