Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(quincunx)
  > 
  > test_check("quincunx")
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 12 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-count.R:2:3'): normal usage ────────────────────────────────────
  Error: object 'at_depth' is not exported by 'namespace:purrr'
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(...) at test-count.R:2:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─quincunx:::count("{\"count\":0,\"next\": \"asdas\"}")
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-count.R:7:3'): returns the top level match ─────────────────────
  Error: object 'at_depth' is not exported by 'namespace:purrr'
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(...) at test-count.R:7:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─quincunx:::count("{\"count\":42,\"next\":{\"count\":43}}")
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-count.R:11:3'): no match returns NA_integer_ ───────────────────
  Error: object 'at_depth' is not exported by 'namespace:purrr'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(is.na(count("{\"count\": null}"))) at test-count.R:11:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─quincunx:::count("{\"count\": null}")
   5. └─base::loadNamespace(x)
   6.   └─base::namespaceImportFrom(...)
   7.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-is_paginated.R:3:3'): is not paginated ─────────────────────────
  Error: object 'at_depth' is not exported by 'namespace:purrr'
  Backtrace:
      ▆
   1. ├─testthat::expect_false(is_paginated("{\n  \"id\": \"PGP000001\"\n }")) at test-is_paginated.R:3:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─quincunx:::is_paginated("{\n  \"id\": \"PGP000001\"\n }")
   5. │ └─quincunx:::count(json_string)
   6. └─base::loadNamespace(x)
   7.   └─base::namespaceImportFrom(...)
   8.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-is_paginated.R:13:3'): is paginated ────────────────────────────
  Error: object 'at_depth' is not exported by 'namespace:purrr'
  Backtrace:
      ▆
   1. ├─testthat::expect_true(is_paginated(txt)) at test-is_paginated.R:13:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─quincunx:::is_paginated(txt)
   5. │ └─quincunx:::count(json_string)
   6. └─base::loadNamespace(x)
   7.   └─base::namespaceImportFrom(...)
   8.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 12 ]
  Error: Test failures
  Execution halted