Running ‘testthat.R’ [3s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nutrientr)
  > 
  > test_check("nutrientr")
  [ FAIL 16 | WARN 0 | SKIP 1 | PASS 10 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • No API key available (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-clean_data.R:9:3): Structure output is correct for food endpoint ──
  Error in `clean_data(resp_food)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::clean_data(resp_food) at test-clean_data.R:9:2
  ── Error (test-clean_data.R:21:3): Structure output is correct for nutrient amount endpoint ──
  Error in `clean_data(resp_nutrientamount)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::clean_data(resp_nutrientamount) at test-clean_data.R:21:2
  ── Error (test-clean_data.R:33:3): Structure output is correct for nutrient group endpoint ──
  Error in `clean_data(resp_nutrientgroup)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::clean_data(resp_nutrientgroup) at test-clean_data.R:33:2
  ── Error (test-clean_data.R:46:3): Structure output is correct for nutrient name endpoint ──
  Error in `clean_data(resp_nutrientname)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::clean_data(resp_nutrientname) at test-clean_data.R:46:2
  ── Error (test-clean_data.R:59:3): Structure output is correct for nutrient source endpoint ──
  Error in `clean_data(resp_nutrientsource)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::clean_data(resp_nutrientsource) at test-clean_data.R:59:2
  ── Error (test-clean_data.R:72:3): Structure output is correct for refuse amount endpoint endpoint ──
  Error in `clean_data(resp_refuseamount)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::clean_data(resp_refuseamount) at test-clean_data.R:72:2
  ── Error (test-clean_data.R:84:3): Structure output is correct for serving size endpoint endpoint ──
  Error in `clean_data(resp_servingsize)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::clean_data(resp_servingsize) at test-clean_data.R:84:2
  ── Error (test-clean_data.R:97:3): Structure output is correct for yield amount endpoint ──
  Error in `clean_data(resp_yieldamount)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::clean_data(resp_yieldamount) at test-clean_data.R:97:2
  ── Error (test-get_food.R:2:3): Structure output is correct for food endpoint ──
  Error in `clean_data(output)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::get_food(...) at test-get_food.R:2:2
   2.   └─nutrientr::clean_data(output)
  ── Error (test-get_nutrientamount.R:2:3): Structure output is correct for nutrient amount endpoint ──
  Error in `clean_data(output)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::get_nutrientamount(...) at test-get_nutrientamount.R:2:2
   2.   └─nutrientr::clean_data(output)
  ── Error (test-get_nutrientgroup.R:2:3): Structure output is correct for nutrient group endpoint ──
  Error in `clean_data(output)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::get_nutrientgroup(apiKey = "664fbadd34e6c2ca75235709f9ede2bd") at test-get_nutrientgroup.R:2:2
   2.   └─nutrientr::clean_data(output)
  ── Error (test-get_nutrientname.R:2:3): Structure output is correct for nutrient name endpoint ──
  Error in `clean_data(output)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::get_nutrientname(apiKey = "664fbadd34e6c2ca75235709f9ede2bd") at test-get_nutrientname.R:2:2
   2.   └─nutrientr::clean_data(output)
  ── Error (test-get_nutrientsource.R:2:3): Structure output is correct for nutrient source endpoint ──
  Error in `clean_data(output)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::get_nutrientsource(apiKey = "664fbadd34e6c2ca75235709f9ede2bd") at test-get_nutrientsource.R:2:2
   2.   └─nutrientr::clean_data(output)
  ── Error (test-get_refuseamount.R:2:3): Structure output is correct for refuse amount endpoint endpoint ──
  Error in `clean_data(output)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::get_refuseamount(...) at test-get_refuseamount.R:2:2
   2.   └─nutrientr::clean_data(output)
  ── Error (test-get_servingsize.R:2:3): Structure output is correct for serving size endpoint endpoint ──
  Error in `clean_data(output)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::get_servingsize(...) at test-get_servingsize.R:2:2
   2.   └─nutrientr::clean_data(output)
  ── Error (test-get_yieldamount.R:2:3): Structure output is correct for yield amount endpoint ──
  Error in `clean_data(output)`: The requested query has no result
  Backtrace:
      ▆
   1. └─nutrientr::get_yieldamount(...) at test-get_yieldamount.R:2:2
   2.   └─nutrientr::clean_data(output)
  
  [ FAIL 16 | WARN 0 | SKIP 1 | PASS 10 ]
  Error: Test failures
  Execution halted