Running 'test-all.R' [21s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > ###
  > library(testthat)
  > test_check('rphylotastic')
  Loading required package: rphylotastic
  -- 1. Error: Loading names from a standard web page works correctly (@test_names
  HTTP error 500.
  1: url_get_scientific_names("http://en.wikipedia.org/wiki/Ant") at testthat/test_names.R:2
  2: jsonlite::fromJSON(paste(get_base_url(), "fn/names_url?url=", URL, "&engine=", search_engine, 
         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: Loading names from an online PDF works correctly (@test_names.R#8) 
  HTTP error 500.
  1: url_get_scientific_names("https://www.fws.gov/westvirginiafieldoffice/PDF/beechridgehcp/Appendix_D_Table_D-1.pdf") at testthat/test_names.R:8
  2: jsonlite::fromJSON(paste(get_base_url(), "fn/names_url?url=", URL, "&engine=", search_engine, 
         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 names from a text string works correctly (@test_names.R#15)
  HTTP error 500.
  1: text_get_scientific_names("Formica polyctena is a species of European red wood ant in the genus Formica. The pavement ant, Tetramorium caespitum is an ant native to Europe. Pseudomyrmex is a genus of stinging, wasp-like ants. Adetomyrma venatrix is an endangered species of ants endemic to Madagascar. Carebara diversa is a species of ants in the subfamily Formicinae. It is found in many Asian countries.") at testthat/test_names.R:15
  2: jsonlite::fromJSON((paste(get_base_url(), "fn/names_text?text=", utils::URLencode(gsub("[^[:alnum:] ]", 
         "", as.character(text))), "&engine=", search_engine, 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")
  
  -- 4. Error: Resolving names with GNR works (@test_resolver.R#3)  --------------
  HTTP error 500.
  1: expect_gte(length(taxa.new <- taxa_resolve_names_with_gnr(taxa)), 3) at testthat/test_resolver.R:3
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: taxa_resolve_names_with_gnr(taxa)
  5: jsonlite::fromJSON(paste(get_base_url(), "tnrs/gnr/resolve?names=", taxa.string, 
         sep = ""))
  6: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  7: parseJSON(txt, bigint_as_char)
  8: parse_con(txt, bigint_as_char)
  9: open(con, "rb")
  10: open.connection(con, "rb")
  
  -- 5. 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: 27 SKIPPED: 0 FAILED: 5
  1. Error: Loading names from a standard web page works correctly (@test_names.R#2) 
  2. Error: Loading names from an online PDF works correctly (@test_names.R#8) 
  3. Error: Loading names from a text string works correctly (@test_names.R#15) 
  4. Error: Resolving names with GNR works (@test_resolver.R#3) 
  5. Error: Loading a tree from NCBI taxonomy (@test_tree.R#17) 
  
  Error: testthat unit tests failed
  Execution halted