Running ‘test-all.R’ [0m/12m]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > ###
  > library(testthat)
  > test_check('rphylotastic')
  Loading required package: rphylotastic
  ── 1. Error: Get species works (@test_getspecies.R#2)  ─────────────────────────
  HTTP error 500.
  1: taxon_get_species("Vulpes") at testthat/test_getspecies.R:2
  2: jsonlite::fromJSON(paste(get_base_url(), "ts/all_species?taxon=", utils::URLencode(taxon), 
         sep = ""))
  3: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  4: parseJSON(txt, bigint_as_char)
  5: parse_con(txt, bigint_as_char)
  6: open(con, "rb")
  7: open.connection(con, "rb")
  
  ── 2. Error: Get country species works (@test_getspecies.R#7)  ─────────────────
  HTTP error 500.
  1: taxon_get_species_and_country("Felidae", "Nepal") at testthat/test_getspecies.R:7
  2: jsonlite::fromJSON(paste(get_base_url(), "ts/country_species?taxon=", utils::URLencode(taxon), 
         "&country=", utils::URLencode(country), sep = ""))
  3: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  4: parseJSON(txt, bigint_as_char)
  5: parse_con(txt, bigint_as_char)
  6: open(con, "rb")
  7: open.connection(con, "rb")
  
  ── 3. Error: Separating dark species works for OToL (@test_getspecies.R#19)  ───
  HTTP error 500.
  1: taxon_separate_dark_taxa_using_otol("vulpes") at testthat/test_getspecies.R:19
  2: unique(jsonlite::fromJSON(paste(get_base_url(), "ts/all_species?taxon=", utils::URLencode(taxon), 
         sep = ""))$species)
  3: jsonlite::fromJSON(paste(get_base_url(), "ts/all_species?taxon=", utils::URLencode(taxon), 
         sep = ""))
  4: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  5: parseJSON(txt, bigint_as_char)
  6: parse_con(txt, bigint_as_char)
  7: open(con, "rb")
  8: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 30 SKIPPED: 0 FAILED: 3
  1. Error: Get species works (@test_getspecies.R#2) 
  2. Error: Get country species works (@test_getspecies.R#7) 
  3. Error: Separating dark species works for OToL (@test_getspecies.R#19) 
  
  Error: testthat unit tests failed
  Execution halted