Running ‘testthat.R’ [3s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(wikilake)
  Loading required package: maps
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, will retire in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  The sp package is now running under evolution status 2
       (status 2 uses the sf package in place of rgdal)
  > 
  > test_check("wikilake")
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 0 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-lake_wiki.R:4:3', 'test-lake_wiki.R:18:3',
    'test-lake_wiki.R:27:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-lake_wiki.R:34:3'): lake_wiki fails well when there is no infobox ──
  <http_503/http_500/http_error/error/condition>
  Error in `query(url, "pageinfo", clean_response, query_param = query_param, 
      ...)`: Service Unavailable (HTTP 503).
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-lake_wiki.R:34:2
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─wikilake::lake_wiki(c("Elk River Chain of Lakes Watershed", "Lake Mendota"))
    5.   └─base::lapply(lake_name, function(x) .lake_wiki(x, map = map))
    6.     └─wikilake (local) FUN(X[[i]], ...)
    7.       └─wikilake (local) .lake_wiki(x, map = map)
    8.         └─wikilake:::get_lake_wiki(lake_name)
    9.           └─WikipediR::page_info("en", "wikipedia", page = lake_name)
   10.             └─WikipediR::query(...)
   11.               └─httr::stop_for_status(response)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 0 ]
  Error: Test failures
  Execution halted