Running ‘testthat.R’ [2s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(serpstatr)
  > 
  > test_check("serpstatr")
  <simpleError: Please install xml2 package>
  ── 1. Failure: Enpoint for sst_sa_database_info is responding (@test_search_anal
  sst_sa_database_info(api_token = "api_token", return_method = "list")$error$message not equal to "Invalid token!".
  target is NULL, current is character
  
  <simpleError: Please install xml2 package>
  ── 2. Failure: Enpoint for sst_sa_stats is responding (@test_search_analytics.R#
  sst_sa_stats(api_token = "api_token")$error$message not equal to "Invalid token!".
  target is NULL, current is character
  
  <simpleError: Please install xml2 package>
  ── 3. Failure: Enpoint for sst_sa_domains_info is responding (@test_search_analy
  ...$NULL not equal to "Invalid token!".
  target is NULL, current is character
  
  <simpleError: Please install xml2 package>
  ── 4. Failure: Enpoint for sst_sa_domain_keywords is responding (@test_search_an
  ...$NULL not equal to "Invalid token!".
  target is NULL, current is character
  
  <simpleError: Please install xml2 package>
  ── 5. Failure: Enpoint for sst_sa_keywords_info is responding (@test_search_anal
  ...$NULL not equal to "Invalid token!".
  target is NULL, current is character
  
  <simpleError: Please install xml2 package>
  ── 6. Failure: Enpoint for sst_sa_keywords is responding (@test_search_analytics
  ...$NULL not equal to "Invalid token!".
  target is NULL, current is character
  
  <simpleError: Please install xml2 package>
  ── 7. Failure: Enpoint for sst_sa_keyword_top is responding (@test_search_analyt
  ...$NULL not equal to "Invalid token!".
  target is NULL, current is character
  
  <simpleError: Please install xml2 package>
  ── 8. Failure: Serpstat API enpoint is responding (@test_utils.R#5)  ───────────
  ...$NULL not equal to "Invalid token!".
  target is NULL, current is character
  
  <simpleError: Please install xml2 package>
  ── 9. Error: data.frame transformation is working (@test_utils.R#16)  ──────────
  second argument must be a list
  Backtrace:
   1. testthat::expect_equal(...)
   4. serpstatr:::sst_return_check(...)
   5. serpstatr::sst_lists_to_df(response_content$result$data)
   7. base::do.call(rbind, lists)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 9 ]
  1. Failure: Enpoint for sst_sa_database_info is responding (@test_search_analytics.R#5) 
  2. Failure: Enpoint for sst_sa_stats is responding (@test_search_analytics.R#14) 
  3. Failure: Enpoint for sst_sa_domains_info is responding (@test_search_analytics.R#21) 
  4. Failure: Enpoint for sst_sa_domain_keywords is responding (@test_search_analytics.R#32) 
  5. Failure: Enpoint for sst_sa_keywords_info is responding (@test_search_analytics.R#51) 
  6. Failure: Enpoint for sst_sa_keywords is responding (@test_search_analytics.R#62) 
  7. Failure: Enpoint for sst_sa_keyword_top is responding (@test_search_analytics.R#77) 
  8. Failure: Serpstat API enpoint is responding (@test_utils.R#5) 
  9. Error: data.frame transformation is working (@test_utils.R#16) 
  
  Error: testthat unit tests failed
  Execution halted