Running ‘spelling.R’
  Running ‘testthat.R’ [20s/57s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(robis)
  > 
  > test_check("robis")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_checklist.R:11:3): scientificname restricts the checklist by scientificname ──
  Error: no applicable method for 'http_error' applied to an object of class "NULL"
  Backtrace:
      █
   1. └─robis::checklist(scientificname = family, verbose = TRUE) test_checklist.R:11:2
   2.   └─robis:::http_request("GET", "checklist", query, verbose)
   3.     └─httr::http_error(result)
  
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 22 ]
  Error: Test failures
  Execution halted
Running 'spelling.R' [0s]
  Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(robis)
  > 
  > test_check("robis")
  == Skipped tests ===============================================================
  * On CRAN (4)
  
  == Failed tests ================================================================
  -- Error (test_occurrence.R:30:3): occurrence with absence = TRUE returns only absence records --
  Error: Result of comparison must be a single logical value
  Backtrace:
      x
   1. \-testthat::expect_gt(nrow(records), 0) test_occurrence.R:30:2
   2.   \-testthat:::expect_compare(">", act, exp)
  -- Failure (test_taxon.R:6:3): taxon returns all requested taxa ----------------
  nrow(taxa) not equal to 2.
  1/1 mismatches
  [1] 0 - 2 == -2
  -- Failure (test_taxon.R:7:3): taxon returns all requested taxa ----------------
  141433 %in% taxa$taxonID is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  -- Failure (test_taxon.R:8:3): taxon returns all requested taxa ----------------
  141434 %in% taxa$taxonID is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 4 | WARN 2 | SKIP 4 | PASS 20 ]
  Error: Test failures
  Execution halted