Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > print(Sys.getenv("NOT_CRAN"))
  [1] ""
  > testthat::test_check("pxweb")
  Loading required package: pxweb
  pxweb 0.16.2: R tools for the PX-WEB API.
  https://github.com/ropengov/pxweb
  
  [ FAIL 1 | WARN 0 | SKIP 33 | PASS 17 ]
  
  ══ Skipped tests (33) ══════════════════════════════════════════════════════════
  • On CRAN (32): 'test-pxweb_api_catalogue.R:10:3',
    'test-pxweb_api_paths.R:7:3', 'test-pxweb_as_dataframe.R:7:3',
    'test-pxweb_constructor.R:7:3', 'test-pxweb_constructor.R:32:3',
    'test-pxweb_constructor.R:53:3', 'test-pxweb_constructor.R:66:3',
    'test-pxweb_constructor.R:76:3', 'test-pxweb_data_comments.R:7:3',
    'test-pxweb_get.R:7:3', 'test-pxweb_get.R:36:3', 'test-pxweb_get.R:88:3',
    'test-pxweb_get.R:104:3', 'test-pxweb_get.R:126:3', 'test-pxweb_get.R:138:3',
    'test-pxweb_get.R:154:3', 'test-pxweb_get.R:163:3', 'test-pxweb_get.R:175:3',
    'test-pxweb_get.R:195:3', 'test-pxweb_get.R:220:3', 'test-pxweb_get.R:243:3',
    'test-pxweb_get.R:256:3', 'test-pxweb_interactive.R:7:3',
    'test-pxweb_interactive.R:32:3', 'test-pxweb_interactive.R:61:3',
    'test-pxweb_interactive.R:74:3', 'test-pxweb_interactive.R:112:3',
    'test-pxweb_interactive.R:128:3', 'test-pxweb_query.R:7:3',
    'test-pxweb_query.R:31:3', 'test-pxweb_query.R:83:3',
    'test-pxweb_test_api.R:7:3'
  • on_github_actions() is not TRUE (1): 'test-README.R:4:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-pxweb_query.R:149:3'): mandatory variables are included automatically ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.scb.se] Resolving timed out after 10014 milliseconds
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-pxweb_query.R:149:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─utils::capture.output(pxd <- pxweb_get(url, pxq4))
   10. │ └─base::withVisible(...elt(i))
   11. └─pxweb::pxweb_get(url, pxq4)
   12.   └─pxweb::pxweb_advanced_get(url = url, query = query, verbose = verbose)
   13.     └─pxweb::pxweb(url)
   14.       └─pxweb:::pxweb_add_config(obj)
   15.         └─httr::GET(cfg_url)
   16.           └─httr:::request_perform(req, hu$handle$handle)
   17.             ├─httr:::request_fetch(req$output, req$url, handle)
   18.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   19.               └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 1 | WARN 0 | SKIP 33 | PASS 17 ]
  Error: Test failures
  Execution halted