Running ‘test-all.R’ [3s/29s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > ###
  > library(testthat)
  > test_check('rphylotastic')
  Loading required package: rphylotastic
  ── 1. Error: Get species info works (@test_speciesinfo.R#2)  ───────────────────
  HTTP error 500.
  1: species_get_info(c("Myrmecocystus mexicanus")) at testthat/test_speciesinfo.R:2
  2: jsonlite::fromJSON(paste(get_base_url(), "sl/eol/get_links?species=", utils::URLencode(spec.string), 
         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 image metadata of species works (@test_speciesinfo.R#8)  ──────
  HTTP error 500.
  1: species_get_image_data(c("Myrmecocystus mexicanus")) at testthat/test_speciesinfo.R:8
  2: jsonlite::fromJSON(paste(get_base_url(), "si/eol/get_images?species=", utils::URLencode(spec.string), 
         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: Loading a tree from NCBI taxonomy (@test_tree.R#17)  ──────────────
  HTTP error 500.
  1: taxa_get_taxonomic_tree(taxa) at testthat/test_tree.R:17
  2: jsonlite::fromJSON(paste(get_base_url(), "gt/pt/get_tree?taxa=", taxa.string, 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")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 31 SKIPPED: 0 FAILED: 3
  1. Error: Get species info works (@test_speciesinfo.R#2) 
  2. Error: Get image metadata of species works (@test_speciesinfo.R#8) 
  3. Error: Loading a tree from NCBI taxonomy (@test_tree.R#17) 
  
  Error: testthat unit tests failed
  Execution halted