Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RGA)
  Please use predefined Credentials only for the testing requests. To obtain your own Credentials see help(authorize).
  > 
  > test_check("RGA")
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 38 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Access token not available (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-query.R:20:5): Collapse all fields ──────────────────────────────
  Error in `is.null(x) || is.na(x)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. └─RGA:::build_query(...) at test-query.R:20:4
   2.   └─RGA:::fix_query(dots)
   3.     └─RGA:::compact(x)
   4.       └─base::vapply(x, is.empty, logical(1L))
   5.         └─RGA FUN(X[[i]], ...)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 38 ]
  Error: Test failures
  Execution halted
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RGA)
  Please use predefined Credentials only for the testing requests. To obtain your own Credentials see help(authorize).
  > 
  > test_check("RGA")
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 38 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Access token not available (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-query.R:20:5): Collapse all fields ──────────────────────────────
  Error in `is.null(x) || is.na(x)`: 'length = 2' in coercion to 'logical(1)'
  Backtrace:
      ▆
   1. └─RGA:::build_query(...) at test-query.R:20:4
   2.   └─RGA:::fix_query(dots)
   3.     └─RGA:::compact(x)
   4.       └─base::vapply(x, is.empty, logical(1L))
   5.         └─RGA FUN(X[[i]], ...)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 38 ]
  Error: Test failures
  Execution halted