Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(onsr)
  > 
  > test_check("onsr")
  == Failed tests ================================================================
  -- Failure (test-01-get.R:15:3): id works --------------------------------------
  `ons_get("cpih01")` threw an unexpected error.
  Message: object 'ans' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(ons_get("cpih01"), NA) test-01-get.R:15:2
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat:::.capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-onsr::ons_get("cpih01")
   8.   \-onsr:::assert_get_id(id)
   9.     \-onsr:::assert_filesize_id(id, ons_ds)
  -- Failure (test-01-get.R:22:3): obs specify the right dim ---------------------
  `ons_get_obs(...)` threw an unexpected error.
  Message: object 'ans' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(...) test-01-get.R:22:2
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat:::.capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-onsr::ons_get_obs(...)
   8.   \-onsr:::assert_get_id(id)
   9.     \-onsr:::assert_filesize_id(id, ons_ds)
  -- Error (test-01-get.R:33:3): obs specify the right dim -----------------------
  Error in `assert_filesize_id(id, ons_ds)`: object 'ans' not found
  Backtrace:
      x
   1. +-testthat::expect_error(ons_get_obs("cpih01"), msg) test-01-get.R:33:2
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat:::.capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-onsr::ons_get_obs("cpih01")
   8.   \-onsr:::assert_get_id(id)
   9.     \-onsr:::assert_filesize_id(id, ons_ds)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 15 ]
  Error: Test failures
  Execution halted