Running ‘test-all.R’ [7s/16s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > test_check("pangaear")
  Loading required package: pangaear
  [ FAIL 4 | WARN 0 | SKIP 8 | PASS 19 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (8)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-pg_search.r:4'): pg_search works and stuff, and stuff and things, also, it works ──
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHRzIjpbeyJVUkkiOiJkb2k
                       (right here) ------^
  
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-pg_search.r:4:2
   2. │ └─cassette$call_block(...)
   3. └─pangaear::pg_search(query = "water") at test-pg_search.r:5:4
   4.   └─jsonlite::fromJSON(res$parse("UTF-8"), FALSE)
   5.     └─jsonlite:::parse_and_simplify(...)
   6.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   7.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-pg_search.r:30'): pg_search paging works ───────────────────────
  Error: lexical error: invalid char in json text.
                                         eyJyZXN1bHRzIjpbeyJVUkkiOiJkb2k
                       (right here) ------^
  
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-pg_search.r:30:2
   2. │ └─cassette$call_block(...)
   3. └─pangaear::pg_search(query = "florisphaera", count = 10) at test-pg_search.r:31:4
   4.   └─jsonlite::fromJSON(res$parse("UTF-8"), FALSE)
   5.     └─jsonlite:::parse_and_simplify(...)
   6.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   7.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-pg_search_es.R:4'): pg_search_es ───────────────────────────────
  Error: lexical error: invalid char in json text.
                                         eyJ0b29rIjo3LCJ0aW1lZF9vdXQiOmZ
                       (right here) ------^
  
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-pg_search_es.R:4:2
   2. │ └─cassette$call_block(...)
   3. └─pangaear::pg_search_es() at test-pg_search_es.R:5:4
   4.   └─jsonlite::fromJSON(res$parse("UTF-8"), flatten = TRUE)
   5.     └─jsonlite:::parse_and_simplify(...)
   6.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   7.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-pg_search_es.R:20'): pg_search_es parameters work ──────────────
  Error: lexical error: invalid char in json text.
                                         eyJ0b29rIjo3LCJ0aW1lZF9vdXQiOmZ
                       (right here) ------^
  
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-pg_search_es.R:20:2
   2. │ └─cassette$call_block(...)
   3. └─pangaear::pg_search_es(size = 1) at test-pg_search_es.R:21:4
   4.   └─jsonlite::fromJSON(res$parse("UTF-8"), flatten = TRUE)
   5.     └─jsonlite:::parse_and_simplify(...)
   6.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   7.         └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 4 | WARN 0 | SKIP 8 | PASS 19 ]
  Error: Test failures
  Execution halted