Running ‘testthat.R’ [20s/181s]
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")
   ==>----------------------------    7% |  ETA: 22s
   ======>------------------------   20% |  ETA: 19s
   ==========>--------------------   33% |  ETA: 16s
   ==============>----------------   45% |  ETA: 13s
   =================>-------------   58% |  ETA: 10s
   =====================>---------   70% |  ETA:  7s
   ========================>------   81% |  ETA:  5s
   ============================>--   93% |  ETA:  2s
  > Waiting 15s for retry backoff
  Saving _problems/test-bfs_get_data-9.R
  > Waiting 15s for retry backoff
  Saving _problems/test-bfs_get_data-25.R
  > Waiting 15s for retry backoff
  Saving _problems/test-bfs_get_data_comments-9.R
  > Waiting 15s for retry backoff
  [ FAIL 3 | WARN 0 | SKIP 9 | PASS 47 ]
  
  ══ 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 ─────────────────────
  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:5: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.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 ───
  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_comments(...) at test-bfs_get_data_comments.R:5:3
   2.   └─pxweb::pxweb_get(url = pxweb_api_url, query = pxq)
   3.     └─pxweb::pxweb_advanced_get(url = url, query = query, verbose = verbose)
   4.       └─pxweb::pxweb(url)
   5.         └─pxweb:::pxweb_add_config(obj)
  
  [ FAIL 3 | WARN 0 | SKIP 9 | PASS 47 ]
  Error:
  ! Test failures.
  Execution halted