Running ‘testthat.R’ [5s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RAthena)
  > 
  > test_check("RAthena")
  [ FAIL 5 | WARN 0 | SKIP 50 | PASS 37 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Environment variables are not set for testing (25)
  • boto3 not available for testing (25)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-file-parser.R:61:3): Check if json has been correctly parser under chunk method ──
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─RAthena:::output_test_data(size, test_file) test-file-parser.R:61:2
   2.   └─RAthena:::test_data(N) test-file-parser.R:23:2
   3.     ├─data.table::data.table(...) test-file-parser.R:16:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─RAthena:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:18:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  ── Error (test-file-parser.R:86:3): Binary and json conversion ─────────────────
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─RAthena:::output_test_data(size, test_file) test-file-parser.R:86:2
   2.   └─RAthena:::test_data(N) test-file-parser.R:23:2
   3.     ├─data.table::data.table(...) test-file-parser.R:16:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─RAthena:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:18:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  ── Error (test-file-parser.R:119:3): Check in conversion is turned off ─────────
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─RAthena:::output_test_data(size, test_file) test-file-parser.R:119:2
   2.   └─RAthena:::test_data(N) test-file-parser.R:23:2
   3.     ├─data.table::data.table(...) test-file-parser.R:16:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─RAthena:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:18:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  ── Error (test-file-parser.R:147:3): Custom json parser ────────────────────────
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─RAthena:::output_test_data(size, test_file) test-file-parser.R:147:2
   2.   └─RAthena:::test_data(N) test-file-parser.R:23:2
   3.     ├─data.table::data.table(...) test-file-parser.R:16:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─RAthena:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:18:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  ── Error (test-file-parser.R:172:3): Custom json parser ────────────────────────
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─RAthena:::output_test_data(size, test_file) test-file-parser.R:172:2
   2.   └─RAthena:::test_data(N) test-file-parser.R:23:2
   3.     ├─data.table::data.table(...) test-file-parser.R:16:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─RAthena:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:18:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  
  [ FAIL 5 | WARN 0 | SKIP 50 | PASS 37 ]
  Error: Test failures
  Execution halted