Running ‘testthat.R’ [10s/187s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(BFS)
  > 
  > test_check("BFS")
   =>-----------------------------    5% |  ETA:  1m
   ===>---------------------------   10% |  ETA:  1m
   =====>-------------------------   16% |  ETA: 47s
   ======>------------------------   22% |  ETA: 42s
   ========>----------------------   27% |  ETA: 39s
   ==========>--------------------   33% |  ETA: 36s
   ===========>-------------------   38% |  ETA: 34s
   =============>-----------------   42% |  ETA: 32s
   ==============>----------------   48% |  ETA: 29s
   ================>--------------   54% |  ETA: 25s
   ==================>------------   59% |  ETA: 22s
   ===================>-----------   64% |  ETA: 20s
   =====================>---------   69% |  ETA: 17s
   ======================>--------   75% |  ETA: 14s
   ========================>------   79% |  ETA: 12s
   =========================>-----   83% |  ETA:  9s
   ===========================>---   89% |  ETA:  7s
   ============================>--   95% |  ETA:  3s
  > Waiting 15s for retry backoff
  > Waiting 15s for retry backoff
  > Waiting 15s for retry backoff
  > Waiting 15s for retry backoff
  > Waiting 15s for retry backoff
  [ FAIL 3 | WARN 1 | SKIP 9 | PASS 32 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • On CRAN (9): 'test-bfs_download_geodata.R:6:3',
    'test-bfs_get_base_maps.R:5:3', 'test-bfs_get_base_maps.R:15:3',
    'test-bfs_get_base_maps.R:25:3', 'test-bfs_get_base_maps.R:35:3',
    'test-bfs_get_base_maps.R:45:3', 'test-bfs_get_base_maps.R:53:3',
    'test-bfs_get_base_maps.R:63:3', 'test-bfs_get_base_maps.R:73:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bfs_get_data.R:5:3'): bfs_get_data() works ─────────────────────
  <httr2_http_429/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(.)`: HTTP 429 Too Many Requests.
  Backtrace:
       ▆
    1. ├─BFS::bfs_get_data(...) at test-bfs_get_data.R:5:3
    2. │ └─... %>% httr2::resp_body_json(simplifyVector = TRUE)
    3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
    4. │ └─httr2:::check_response(resp)
    5. │   └─httr2:::is_response(resp)
    6. └─httr2::req_perform(.)
    7.   └─httr2:::handle_resp(req, resp, error_call = error_call)
    8.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
    9.       ├─rlang::catch_cnd(...)
   10.       │ ├─rlang::eval_bare(...)
   11.       │ ├─base::tryCatch(...)
   12.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   13.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   15.       │ └─base::force(expr)
   16.       └─rlang::abort(...)
  ── Error ('test-bfs_get_data.R:17:3'): bfs_get_data() query argument ───────────
  Error: 
  This is not a PXWEB API: 
  https://www.pxweb.bfs.admin.ch/api/v1/en/px-x-1502040100_131/px-x-1502040100_131.px
  Backtrace:
      ▆
   1. └─BFS::bfs_get_data(...) at test-bfs_get_data.R:17:3
   2.   └─pxweb::pxweb_get_data(...)
   3.     └─pxweb::pxweb_advanced_get(url = url, query = query, verbose = verbose)
   4.       └─pxweb::pxweb(url)
   5.         └─pxweb:::pxweb_add_config(obj)
  ── Error ('test-bfs_get_data_comments.R:5:3'): bfs_get_data_comments() works ───
  <httr2_http_429/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(.)`: HTTP 429 Too Many Requests.
  Backtrace:
       ▆
    1. ├─BFS::bfs_get_data_comments(...) at test-bfs_get_data_comments.R:5:3
    2. │ └─... %>% httr2::resp_body_json(simplifyVector = TRUE)
    3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
    4. │ └─httr2:::check_response(resp)
    5. │   └─httr2:::is_response(resp)
    6. └─httr2::req_perform(.)
    7.   └─httr2:::handle_resp(req, resp, error_call = error_call)
    8.     └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
    9.       ├─rlang::catch_cnd(...)
   10.       │ ├─rlang::eval_bare(...)
   11.       │ ├─base::tryCatch(...)
   12.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   13.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   15.       │ └─base::force(expr)
   16.       └─rlang::abort(...)
  
  [ FAIL 3 | WARN 1 | SKIP 9 | PASS 32 ]
  Error: Test failures
  Execution halted