Running ‘testthat.R’ [12s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(taxa)
  
  Attaching package: 'taxa'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  > 
  > test_check("taxa")
  1. Error: Taxmap can be intialized from queried data (@test--taxmap_parsers.R#116) 
  Bad Request (HTTP 400).
  1: lookup_tax_data(raw_data, type = "taxon_id", datasets = list(counts = abundance, 
         my_names = common_names, foods = foods), mappings = c(species_id = "id", species_id = "{{name}}", 
         `{{index}}` = "{{index}}"), column = "my_tax_id") at testthat/test--taxmap_parsers.R:116
  2: lookup_funcs[[type]](query)
  3: map_unique(ids, taxize::classification, ask = FALSE, rows = 1, db = database)
  4: func(unique_input, ...)
  5: classification.default(unique_input, ...)
  6: stats::setNames(classification(id, callopts = callopts, return_id = return_id, ...), 
         x)
  7: classification(id, callopts = callopts, return_id = return_id, ...)
  8: classification.uid(id, callopts = callopts, return_id = return_id, ...)
  9: lapply(id, fun, callopts = callopts)
  10: FUN(X[[i]], ...)
  11: stop_for_status(res)
  
  2. Error: Taxmap can be intialized from raw strings (@test--taxmap_parsers.R#154) 
  Bad Request (HTTP 400).
  1: extract_tax_data(raw_data, key = c(var_1 = "info", var_2 = "taxon_id", tax = "info"), 
         regex = "^>var_1:(.+)--var_2:(.+)--non_target--tax:(.+)$") at testthat/test--taxmap_parsers.R:154
  2: lookup_tax_data(tax_data = parsed_input, type = my_type, column = which(key == my_type) + 
         1, database = database, include_tax_data = include_tax_data)
  3: lookup_funcs[[type]](query)
  4: map_unique(ids, taxize::classification, ask = FALSE, rows = 1, db = database)
  5: func(unique_input, ...)
  6: classification.default(unique_input, ...)
  7: stats::setNames(classification(id, callopts = callopts, return_id = return_id, ...), 
         x)
  8: classification(id, callopts = callopts, return_id = return_id, ...)
  9: classification.uid(id, callopts = callopts, return_id = return_id, ...)
  10: lapply(id, fun, callopts = callopts)
  11: FUN(X[[i]], ...)
  12: stop_for_status(res)
  
  testthat results ================================================================
  OK: 412 SKIPPED: 0 FAILED: 2
  1. Error: Taxmap can be intialized from queried data (@test--taxmap_parsers.R#116) 
  2. Error: Taxmap can be intialized from raw strings (@test--taxmap_parsers.R#154) 
  
  Error: testthat unit tests failed
  Execution halted