Running 'testthat.R' [8s]
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: R tools for PX-WEB API.
  Copyright (C) 2014-2018 Mans Magnusson, Leo Lahti et al.
  https://github.com/ropengov/pxweb
  
  -- Skip (test-PxWebApiData_ApiData.R:5:3): ApiData - Readymade SSB-data with url
  Reason: On CRAN
  
  -- Skip (test-PxWebApiData_ApiData.R:15:3): ApiData - SCB-data using TRUE and FA
  Reason: On CRAN
  
  -- Skip (test-PxWebApiData_ApiData.R:32:3): ApiData - StatFin-data with special 
  Reason: On CRAN
  
  -- Skip (test-PxWebApiData_ApiData.R:47:3): ApiData - SSB-data advanced use ----
  Reason: On CRAN
  
  -- Skip (test-PxWebApiData_ApiData.R:61:3): ApiData - SSB-data with returnMetaFr
  Reason: On CRAN
  
  -- Skip (test-api_catalogue.R:6:3):  -------------------------------------------
  Reason: Write tests for api_cat functions!
  
  -- Skip (test-apis_in_catalogue.R:7:3): test connections to apis in catalogue --
  Reason: On CRAN
  
  -- Skip (test-base_url.R:7:3): base_url() --------------------------------------
  Reason: On CRAN
  
  -- Skip (test-big_query.R:6:3): big queries ------------------------------------
  Reason: Skip temporarily (until new version)
  
  -- Skip (test-clean_pxweb.R:7:3): clean_pxweb ----------------------------------
  Reason: On CRAN
  
  -- Skip (test-clean_pxweb.R:97:3): clean_pxweb_numbers -------------------------
  Reason: On CRAN
  
  -- Skip (test-get_pxweb_data.R:14:3): get_pxweb_data() -------------------------
  Reason: On CRAN
  
  -- ERROR (test-get_pxweb_data.R:154:3): Test warnings --------------------------
  Error: No internet connection to http://api.scb.se/OV0104/v1/doris/sv/ssd/TK/TK1001/TK1001S/SnabbStatTK1001
  Backtrace:
       x
    1. +-testthat::expect_that(...) test-get_pxweb_data.R:154:2
    2. | \-testthat:::condition(object)
    3. |   \-testthat::expect_warning(x, regexp = regexp, all = all, ...)
    4. |     \-testthat:::quasi_capture(enquo(object), label, capture_warnings)
    5. |       +-testthat:::.capture(...)
    6. |       | \-base::withCallingHandlers(...)
    7. |       \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. \-pxweb::get_pxweb_data(url = test_url, dims = test_dims, clean = FALSE) test-get_pxweb_data.R:157:4
    9.   +-base::suppressWarnings(reorder_and_check_dims(url, dims))
   10.   | \-base::withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
   11.   \-pxweb:::reorder_and_check_dims(url, dims)
   12.     \-pxweb::get_pxweb_metadata(path = url)
  
  -- Skip (test-get_pxweb_data.R:165:1): Previous bug identified by Erik Bulow (#8
  Reason: empty test
  
  -- Skip (test-get_pxweb_dims.R:8:3): get_pxweb_dims() --------------------------
  Reason: On CRAN
  
  -- Skip (test-get_pxweb_levels.R:8:3): get_pxweb_levels ------------------------
  Reason: On CRAN
  
  -- Skip (test-get_pxweb_metadata.R:8:3): baseURL 1 -----------------------------
  Reason: On CRAN
  
  -- Skip (test-get_pxweb_metadata.R:29:3): baseURL 2 ----------------------------
  Reason: Until next version
  
  -- Skip (test-multiple_queries_data.R:9:3): multiple data calls ----------------
  Reason: Until next version
  
  -- Skip (test-multiple_queries_data.R:39:3): multiple metadata calls -----------
  Reason: Until next version
  
  -- Skip (test-pxweb_as_dataframe.R:7:3): Converting pxweb data to matrices and d
  Reason: On CRAN
  
  -- Skip (test-pxweb_constructor.R:7:3): Constructor works as it should with Stat
  Reason: On CRAN
  
  -- Skip (test-pxweb_constructor.R:32:3): Constructor works for erroneous urls --
  Reason: On CRAN
  
  -- Skip (test-pxweb_constructor.R:53:3): Cache cleaner and print ---------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_constructor.R:66:3): pxweb_clear_cache() without any files -
  Reason: On CRAN
  
  -- Skip (test-pxweb_constructor.R:76:3): pxweb_clear_cache() without any files a
  Reason: On CRAN
  
  -- Skip (test-pxweb_data_comments.R:7:3): test data comment structure ----------
  Reason: On CRAN
  
  -- Skip (test-pxweb_examples.R:7:3): Example tests -----------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:7:3): Constructor works as it should with Statistics S
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:59:3): Previous bugs ---------------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:77:3): Test to download json-stat objects ------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:99:3): Test pxweb_get_data ---------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:111:3): Test http logger -----------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:128:3): No value bug ---------------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:163:3): h level --------------------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:176:3): large variable call --------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_get.R:187:3): Cite data ------------------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_interactive.R:7:3): Basic usage ----------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_interactive.R:32:3): API catalogue usage -------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_interactive.R:61:3): Select all and eliminate --------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_interactive.R:74:3): Select all and eliminate --------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_interactive.R:112:3): Stat Iceland structure ---------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_interactive.R:128:3): No value bug -------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_query.R:7:3): pxweb_query object ---------------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_query.R:31:3): split pxweb_query object --------------------
  Reason: On CRAN
  
  -- Skip (test-pxweb_test_api.R:7:3): Mixed node levels object ------------------
  Reason: On CRAN
  
  -- Skip (test-test_pxweb_api.R:8:3): test_pxweb_api() --------------------------
  Reason: On CRAN
  
  -- Skip (test-utils_internal.R:7:3): api_timer() -------------------------------
  Reason: On CRAN
  
  -- Skip (test-x_deprecated_get_pxweb_data.R:14:3): get_pxweb_data() ------------
  Reason: On CRAN
  
  -- Skip (test-x_deprecated_get_pxweb_data.R:118:3): get_pxweb_data() -----------
  Reason: On CRAN
  
  -- Skip (test-x_deprecated_get_pxweb_data.R:156:3): get_pxweb_data() -----------
  Reason: On CRAN
  
  -- Skipped tests  --------------------------------------------------------------
  * On CRAN (44)
  * Skip temporarily (until new version) (1)
  * Until next version (3)
  * Write tests for api_cat functions! (1)
  * empty test (1)
  
  == testthat results  ===========================================================
  ERROR (test-get_pxweb_data.R:154:3): Test warnings
  
  [ FAIL 1 | WARN 0 | SKIP 50 | PASS 97 ]
  Error: Test failures
  Execution halted