Running ‘test-all.R’ [2s/108s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > library("rinat")
  > test_check("rinat")
  ── ERROR (test-all.R:21:3): getting observation by ID works ────────────────────
  Error: lexical error: invalid char in json text.
                                         <h2>This website is under heavy
                       (right here) ------^
  
  Backtrace:
      █
   1. ├─testthat::expect_gt(length(get_inat_obs_id(res_set$id[1])), 0) test-all.R:21:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─rinat::get_inat_obs_id(res_set$id[1])
   5.   └─jsonlite::fromJSON(content(GET(base_url, path = q_path), as = "text"))
   6.     └─jsonlite:::parse_and_simplify(...)
   7.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   8.         └─jsonlite:::parse_string(txt, bigint_as_char)
  
  ── ERROR (test-all.R:26:3): project info is retrieved ──────────────────────────
  Error: lexical error: invalid char in json text.
                                         <h2>This website is under heavy
                       (right here) ------^
  
  Backtrace:
      █
   1. ├─testthat::expect_match(...) test-all.R:26:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─rinat::get_inat_obs_project(...)
   5.   └─jsonlite::fromJSON(content(GET(url), as = "text"))
   6.     └─jsonlite:::parse_and_simplify(...)
   7.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   8.         └─jsonlite:::parse_string(txt, bigint_as_char)
  
  ── ERROR (test-all.R:30:3): getting observations by users works ────────────────
  Error: argument is of length zero
  Backtrace:
      █
   1. ├─testthat::expect_gt(...) test-all.R:30:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─rinat::get_inat_obs_user(as.character(res_set$user_login[1]))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-all.R:21:3): getting observation by ID works
  ERROR (test-all.R:26:3): project info is retrieved
  ERROR (test-all.R:30:3): getting observations by users works
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted