Running 'testthat.R' [2s/6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rwars)
  > 
  > test_check("rwars")
  -- 1. Error: Classes can be retrieved (@test_all.R#3)  -------------------------
  Not Found (HTTP 404).
  Backtrace:
   1. testthat::expect_true(...)
   4. rwars::get_all_planets()
   5. rwars:::query("/planets/", ...)
   6. httr::stop_for_status(result)
  
  -- 2. Error: Classes can be retrieved and parsed (@test_all.R#12)  -------------
  Not Found (HTTP 404).
  Backtrace:
   1. testthat::expect_true(...)
   4. rwars::get_all_planets(parse_result = TRUE)
   5. rwars:::query("/planets/", ...)
   6. httr::stop_for_status(result)
  
  -- 3. Error: Class continuation works (@test_all.R#21)  ------------------------
  Not Found (HTTP 404).
  Backtrace:
   1. testthat::expect_true(...)
   4. rwars::get_all_planets(parse_result = TRUE)
   5. rwars:::query("/planets/", ...)
   6. httr::stop_for_status(result)
  
  -- 4. Error: Entities can be retrieved (@test_entities.R#3)  -------------------
  Not Found (HTTP 404).
  Backtrace:
   1. testthat::expect_true(...)
   4. rwars::get_planet(1)
   5. rwars:::query(paste0("/planets/", id), ...)
   6. httr::stop_for_status(result)
  
  -- 5. Error: Entities can be retrieved and parsed (@test_entities.R#12)  -------
  Not Found (HTTP 404).
  Backtrace:
   1. testthat::expect_true(...)
   4. rwars::get_planet(1, TRUE)
   5. rwars:::query(paste0("/planets/", id), ...)
   6. httr::stop_for_status(result)
  
  -- 6. Error: Schemas can be retrieved (@test_schemas.R#3)  ---------------------
  Not Found (HTTP 404).
  Backtrace:
   1. testthat::expect_true(...)
   4. rwars::get_planet_schema()
   5. rwars:::query("/planets/schema", ...)
   6. httr::stop_for_status(result)
  
  -- 7. Error: Schemas can be retrieved and parsed (@test_schemas.R#12)  ---------
  Not Found (HTTP 404).
  Backtrace:
   1. testthat::expect_true(...)
   4. rwars::get_planet_schema(TRUE)
   5. rwars:::query("/planets/schema", ...)
   6. httr::stop_for_status(result)
  
  == testthat results  ===========================================================
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: Classes can be retrieved (@test_all.R#3) 
  2. Error: Classes can be retrieved and parsed (@test_all.R#12) 
  3. Error: Class continuation works (@test_all.R#21) 
  4. Error: Entities can be retrieved (@test_entities.R#3) 
  5. Error: Entities can be retrieved and parsed (@test_entities.R#12) 
  6. Error: Schemas can be retrieved (@test_schemas.R#3) 
  7. Error: Schemas can be retrieved and parsed (@test_schemas.R#12) 
  
  Error: testthat unit tests failed
  Execution halted