Running 'spelling.R'
  Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(httptest)
  Loading required package: testthat
  > test_check("crplyr")
  Loading required package: crplyr
  Loading required package: crunch
  
  Attaching package: 'crunch'
  
  The following objects are masked from 'package:stats':
  
      filter, rstandard, setNames
  
  The following object is masked from 'package:graphics':
  
      title
  
  The following object is masked from 'package:utils':
  
      write.csv
  
  The following object is masked from 'package:base':
  
      table
  
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:crunch':
  
      combine, filter, id
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  tar (child): gzip: Cannot exec: No such file or directory
  tar (child): Error is not recoverable: exiting now
  /usr/bin/tar: Child returned status 2
  /usr/bin/tar: Error is not recoverable: exiting now
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-api.R:3:1): (code run outside of `test_that()`) ─────────────────
  Error: GET https://app.crunch.io/api/ (app.crunch.io/api.json)
  Backtrace:
       █
    1. ├─crplyr:::with_mock_crunch(...) test-api.R:3:0
    2. │ ├─base::with(opts, with_mock_api(expr))
    3. │ ├─crunch:::with.contextManager(opts, with_mock_api(expr))
    4. │ │ └─base::eval(substitute(expr), envir = parent.frame())
    5. │ │   └─base::eval(substitute(expr), envir = parent.frame())
    6. │ └─httptest::with_mock_api(expr)
    7. │   └─base::eval.parent(expr)
    8. │     └─base::eval(expr, p)
    9. ├─httptest::expect_header(...) test-api.R:4:4
   10. │ ├─httptest::with_trace(...)
   11. │ │ └─base::eval.parent(expr)
   12. │ │   └─base::eval(expr, p)
   13. │ └─testthat::expect_warning(..., ignore.case = ignore.case)
   14. │   └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
   15. │     ├─testthat:::.capture(...)
   16. │     │ └─base::withCallingHandlers(...)
   17. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   18. └─crunch::crGET("https://app.crunch.io/api/")
   19.   └─crunch:::crunchAPI("GET", ...)
   20.     └─httpcache:::FUN(...)
   21.       └─httr::GET(url, ...)
   22.         └─httr:::request_perform(req, hu$handle$handle)
   23.           └─httr:::request_fetch(req$output, req$url, handle)
   24.             └─(function (req, handle, refresh) ...
   25.               └─httptest:::stop_request(req)
  ── Error (test-as-tibble.R:11:5): as_cr_tibble on prop.table ───────────────────
  Error: lexical error: invalid char in json text.
                                         cubes/cat-x-mr-x-mr.json
                       (right here) ------^
  
  Backtrace:
      █
   1. └─crplyr:::loadCube("cubes/cat-x-mr-x-mr.json") test-as-tibble.R:11:4
   2.   └─jsonlite::fromJSON(filename, simplifyVector = FALSE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-as-tibble.R:35:5): as_tibble on prop.table ──────────────────────
  Error: lexical error: invalid char in json text.
                                         cubes/cat-x-mr-x-mr.json
                       (right here) ------^
  
  Backtrace:
      █
   1. └─crplyr:::loadCube("cubes/cat-x-mr-x-mr.json") test-as-tibble.R:35:4
   2.   └─jsonlite::fromJSON(filename, simplifyVector = FALSE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-as-tibble.R:50:5): as_cr_tibble on margin.table ─────────────────
  Error: lexical error: invalid char in json text.
                                         cubes/cat-x-mr-x-mr.json
                       (right here) ------^
  
  Backtrace:
      █
   1. └─crplyr:::loadCube("cubes/cat-x-mr-x-mr.json") test-as-tibble.R:50:4
   2.   └─jsonlite::fromJSON(filename, simplifyVector = FALSE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-as-tibble.R:73:1): (code run outside of `test_that()`) ──────────
  Error: GET https://app.crunch.io/api/ (app.crunch.io/api.json)
  Backtrace:
       █
    1. ├─crplyr:::with_mock_crunch(...) test-as-tibble.R:73:0
    2. │ ├─base::with(opts, with_mock_api(expr))
    3. │ ├─crunch:::with.contextManager(opts, with_mock_api(expr))
    4. │ │ └─base::eval(substitute(expr), envir = parent.frame())
    5. │ │   └─base::eval(substitute(expr), envir = parent.frame())
    6. │ └─httptest::with_mock_api(expr)
    7. │   └─base::eval.parent(expr)
    8. │     └─base::eval(expr, p)
    9. └─crunch::loadDataset("test ds") test-as-tibble.R:74:4
   10.   └─crunch:::lookupDataset(dataset, project = project)
   11.     └─crunch:::findDatasetsByName(x)
   12.       ├─base::paste0(...)
   13.       └─crunch:::sessionURL("datasets")
   14.         ├─crunch::shojiURL(getAPIRoot(), collection, key)
   15.         │ └─crunch::is.variable(x)
   16.         └─crunch:::getAPIRoot()
   17.           ├─crunch:::ShojiObject(crGET(x))
   18.           │ └─methods::new(structure("ShojiObject", package = "crunch"), ...)
   19.           │   ├─methods::initialize(value, ...)
   20.           │   └─crunch:::initialize(value, ...)
   21.           └─crunch::crGET(x)
   22.             └─crunch:::crunchAPI("GET", ...)
   23.               └─httpcache:::FUN(...)
   24.                 └─httr::GET(url, ...)
   25.                   └─httr:::request_perform(req, hu$handle$handle)
   26.                     └─httr:::request_fetch(req$output, req$url, handle)
   27.                       └─(function (req, handle, refresh) ...
   28.                         └─httptest:::stop_request(req)
  ── Error (test-collect.R:9:1): (code run outside of `test_that()`) ─────────────
  Error: GET https://app.crunch.io/api/ (app.crunch.io/api.json)
  Backtrace:
       █
    1. ├─crplyr:::with_mock_crunch(...) test-collect.R:9:0
    2. │ ├─base::with(opts, with_mock_api(expr))
    3. │ ├─crunch:::with.contextManager(opts, with_mock_api(expr))
    4. │ │ └─base::eval(substitute(expr), envir = parent.frame())
    5. │ │   └─base::eval(substitute(expr), envir = parent.frame())
    6. │ └─httptest::with_mock_api(expr)
    7. │   └─base::eval.parent(expr)
    8. │     └─base::eval(expr, p)
    9. └─crunch::loadDataset("test ds") test-collect.R:10:4
   10.   └─crunch:::lookupDataset(dataset, project = project)
   11.     └─crunch:::findDatasetsByName(x)
   12.       ├─base::paste0(...)
   13.       └─crunch:::sessionURL("datasets")
   14.         ├─crunch::shojiURL(getAPIRoot(), collection, key)
   15.         │ └─crunch::is.variable(x)
   16.         └─crunch:::getAPIRoot()
   17.           ├─crunch:::ShojiObject(crGET(x))
   18.           │ └─methods::new(structure("ShojiObject", package = "crunch"), ...)
   19.           │   ├─methods::initialize(value, ...)
   20.           │   └─crunch:::initialize(value, ...)
   21.           └─crunch::crGET(x)
   22.             └─crunch:::crunchAPI("GET", ...)
   23.               └─httpcache:::FUN(...)
   24.                 └─httr::GET(url, ...)
   25.                   └─httr:::request_perform(req, hu$handle$handle)
   26.                     └─httr:::request_fetch(req$output, req$url, handle)
   27.                       └─(function (req, handle, refresh) ...
   28.                         └─httptest:::stop_request(req)
  ── Error (test-filter.R:3:1): (code run outside of `test_that()`) ──────────────
  Error: GET https://app.crunch.io/api/ (app.crunch.io/api.json)
  Backtrace:
       █
    1. ├─crplyr:::with_mock_crunch(...) test-filter.R:3:0
    2. │ ├─base::with(opts, with_mock_api(expr))
    3. │ ├─crunch:::with.contextManager(opts, with_mock_api(expr))
    4. │ │ └─base::eval(substitute(expr), envir = parent.frame())
    5. │ │   └─base::eval(substitute(expr), envir = parent.frame())
    6. │ └─httptest::with_mock_api(expr)
    7. │   └─base::eval.parent(expr)
    8. │     └─base::eval(expr, p)
    9. └─crunch::loadDataset("test ds") test-filter.R:4:4
   10.   └─crunch:::lookupDataset(dataset, project = project)
   11.     └─crunch:::findDatasetsByName(x)
   12.       ├─base::paste0(...)
   13.       └─crunch:::sessionURL("datasets")
   14.         ├─crunch::shojiURL(getAPIRoot(), collection, key)
   15.         │ └─crunch::is.variable(x)
   16.         └─crunch:::getAPIRoot()
   17.           ├─crunch:::ShojiObject(crGET(x))
   18.           │ └─methods::new(structure("ShojiObject", package = "crunch"), ...)
   19.           │   ├─methods::initialize(value, ...)
   20.           │   └─crunch:::initialize(value, ...)
   21.           └─crunch::crGET(x)
   22.             └─crunch:::crunchAPI("GET", ...)
   23.               └─httpcache:::FUN(...)
   24.                 └─httr::GET(url, ...)
   25.                   └─httr:::request_perform(req, hu$handle$handle)
   26.                     └─httr:::request_fetch(req$output, req$url, handle)
   27.                       └─(function (req, handle, refresh) ...
   28.                         └─httptest:::stop_request(req)
  ── Error (test-group-by.R:5:1): (code run outside of `test_that()`) ────────────
  Error: GET https://app.crunch.io/api/ (app.crunch.io/api.json)
  Backtrace:
       █
    1. ├─crplyr:::with_mock_crunch(...) test-group-by.R:5:0
    2. │ ├─base::with(opts, with_mock_api(expr))
    3. │ ├─crunch:::with.contextManager(opts, with_mock_api(expr))
    4. │ │ └─base::eval(substitute(expr), envir = parent.frame())
    5. │ │   └─base::eval(substitute(expr), envir = parent.frame())
    6. │ └─httptest::with_mock_api(expr)
    7. │   └─base::eval.parent(expr)
    8. │     └─base::eval(expr, p)
    9. └─crunch::loadDataset("test ds") test-group-by.R:6:4
   10.   └─crunch:::lookupDataset(dataset, project = project)
   11.     └─crunch:::findDatasetsByName(x)
   12.       ├─base::paste0(...)
   13.       └─crunch:::sessionURL("datasets")
   14.         ├─crunch::shojiURL(getAPIRoot(), collection, key)
   15.         │ └─crunch::is.variable(x)
   16.         └─crunch:::getAPIRoot()
   17.           ├─crunch:::ShojiObject(crGET(x))
   18.           │ └─methods::new(structure("ShojiObject", package = "crunch"), ...)
   19.           │   ├─methods::initialize(value, ...)
   20.           │   └─crunch:::initialize(value, ...)
   21.           └─crunch::crGET(x)
   22.             └─crunch:::crunchAPI("GET", ...)
   23.               └─httpcache:::FUN(...)
   24.                 └─httr::GET(url, ...)
   25.                   └─httr:::request_perform(req, hu$handle$handle)
   26.                     └─httr:::request_fetch(req$output, req$url, handle)
   27.                       └─(function (req, handle, refresh) ...
   28.                         └─httptest:::stop_request(req)
  ── Error (test-mutate.R:3:1): (code run outside of `test_that()`) ──────────────
  Error: GET https://app.crunch.io/api/ (app.crunch.io/api.json)
  Backtrace:
       █
    1. ├─crplyr:::with_mock_crunch(...) test-mutate.R:3:0
    2. │ ├─base::with(opts, with_mock_api(expr))
    3. │ ├─crunch:::with.contextManager(opts, with_mock_api(expr))
    4. │ │ └─base::eval(substitute(expr), envir = parent.frame())
    5. │ │   └─base::eval(substitute(expr), envir = parent.frame())
    6. │ └─httptest::with_mock_api(expr)
    7. │   └─base::eval.parent(expr)
    8. │     └─base::eval(expr, p)
    9. └─crunch::loadDataset("test ds") test-mutate.R:4:4
   10.   └─crunch:::lookupDataset(dataset, project = project)
   11.     └─crunch:::findDatasetsByName(x)
   12.       ├─base::paste0(...)
   13.       └─crunch:::sessionURL("datasets")
   14.         ├─crunch::shojiURL(getAPIRoot(), collection, key)
   15.         │ └─crunch::is.variable(x)
   16.         └─crunch:::getAPIRoot()
   17.           ├─crunch:::ShojiObject(crGET(x))
   18.           │ └─methods::new(structure("ShojiObject", package = "crunch"), ...)
   19.           │   ├─methods::initialize(value, ...)
   20.           │   └─crunch:::initialize(value, ...)
   21.           └─crunch::crGET(x)
   22.             └─crunch:::crunchAPI("GET", ...)
   23.               └─httpcache:::FUN(...)
   24.                 └─httr::GET(url, ...)
   25.                   └─httr:::request_perform(req, hu$handle$handle)
   26.                     └─httr:::request_fetch(req$output, req$url, handle)
   27.                       └─(function (req, handle, refresh) ...
   28.                         └─httptest:::stop_request(req)
  ── Error (test-plots-vdiff.R:4:5): autplot matches mocked plots ────────────────
  Error: lexical error: invalid char in json text.
                                         cubes/univariate-categorical.js
                       (right here) ------^
  
  Backtrace:
      █
   1. └─crplyr:::loadCube("cubes/univariate-categorical.json") test-plots-vdiff.R:4:4
   2.   └─jsonlite::fromJSON(filename, simplifyVector = FALSE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-select.R:3:1): (code run outside of `test_that()`) ──────────────
  Error: GET https://app.crunch.io/api/ (app.crunch.io/api.json)
  Backtrace:
       █
    1. ├─crplyr:::with_mock_crunch(...) test-select.R:3:0
    2. │ ├─base::with(opts, with_mock_api(expr))
    3. │ ├─crunch:::with.contextManager(opts, with_mock_api(expr))
    4. │ │ └─base::eval(substitute(expr), envir = parent.frame())
    5. │ │   └─base::eval(substitute(expr), envir = parent.frame())
    6. │ └─httptest::with_mock_api(expr)
    7. │   └─base::eval.parent(expr)
    8. │     └─base::eval(expr, p)
    9. └─crunch::loadDataset("test ds") test-select.R:4:4
   10.   └─crunch:::lookupDataset(dataset, project = project)
   11.     └─crunch:::findDatasetsByName(x)
   12.       ├─base::paste0(...)
   13.       └─crunch:::sessionURL("datasets")
   14.         ├─crunch::shojiURL(getAPIRoot(), collection, key)
   15.         │ └─crunch::is.variable(x)
   16.         └─crunch:::getAPIRoot()
   17.           ├─crunch:::ShojiObject(crGET(x))
   18.           │ └─methods::new(structure("ShojiObject", package = "crunch"), ...)
   19.           │   ├─methods::initialize(value, ...)
   20.           │   └─crunch:::initialize(value, ...)
   21.           └─crunch::crGET(x)
   22.             └─crunch:::crunchAPI("GET", ...)
   23.               └─httpcache:::FUN(...)
   24.                 └─httr::GET(url, ...)
   25.                   └─httr:::request_perform(req, hu$handle$handle)
   26.                     └─httr:::request_fetch(req$output, req$url, handle)
   27.                       └─(function (req, handle, refresh) ...
   28.                         └─httptest:::stop_request(req)
  ── Error (test-tbl_crunch_cube.R:3:1): (code run outside of `test_that()`) ─────
  Error: lexical error: invalid char in json text.
                                         cubes/cat-x-mr-x-mr.json
                       (right here) ------^
  
  Backtrace:
      █
   1. └─crplyr:::loadCube("cubes/cat-x-mr-x-mr.json") test-tbl_crunch_cube.R:3:0
   2.   └─jsonlite::fromJSON(filename, simplifyVector = FALSE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error (test-variable-autoplot.R:13:1): (code run outside of `test_that()`) ──
  Error: GET https://app.crunch.io/api/ (app.crunch.io/api.json)
  Backtrace:
       █
    1. ├─crplyr:::with_mock_crunch(...) test-variable-autoplot.R:13:0
    2. │ ├─base::with(opts, with_mock_api(expr))
    3. │ ├─crunch:::with.contextManager(opts, with_mock_api(expr))
    4. │ │ └─base::eval(substitute(expr), envir = parent.frame())
    5. │ │   └─base::eval(substitute(expr), envir = parent.frame())
    6. │ └─httptest::with_mock_api(expr)
    7. │   └─base::eval.parent(expr)
    8. │     └─base::eval(expr, p)
    9. └─crunch::loadDataset("test ds") test-variable-autoplot.R:14:4
   10.   └─crunch:::lookupDataset(dataset, project = project)
   11.     └─crunch:::findDatasetsByName(x)
   12.       ├─base::paste0(...)
   13.       └─crunch:::sessionURL("datasets")
   14.         ├─crunch::shojiURL(getAPIRoot(), collection, key)
   15.         │ └─crunch::is.variable(x)
   16.         └─crunch:::getAPIRoot()
   17.           ├─crunch:::ShojiObject(crGET(x))
   18.           │ └─methods::new(structure("ShojiObject", package = "crunch"), ...)
   19.           │   ├─methods::initialize(value, ...)
   20.           │   └─crunch:::initialize(value, ...)
   21.           └─crunch::crGET(x)
   22.             └─crunch:::crunchAPI("GET", ...)
   23.               └─httpcache:::FUN(...)
   24.                 └─httr::GET(url, ...)
   25.                   └─httr:::request_perform(req, hu$handle$handle)
   26.                     └─httr:::request_fetch(req$output, req$url, handle)
   27.                       └─(function (req, handle, refresh) ...
   28.                         └─httptest:::stop_request(req)
  
  [ FAIL 13 | WARN 0 | SKIP 0 | PASS 45 ]
  Error: Test failures
  In addition: Warning message:
  In untar(system.file("mocks.tgz", package = "crunch"), exdir = tempdir()) :
    'C:/msys64/usr/bin/tar --force-local -xf "C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/lib/crunch/mocks.tgz" -C "C:/msys64/home/tomas/ucrt3/svn/ucrt3/r_packages/pkgcheck/CRAN/crplyr/tmp/RtmpARd0ja"' returned error code 2
  Execution halted