Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(noctua)
  > 
  > test_check("noctua")
  [ FAIL 5 | WARN 0 | SKIP 53 | PASS 38 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Environment variables are not set for testing (53)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-file-parser.R:62: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. └─noctua:::output_test_data(size, test_file) test-file-parser.R:62:2
   2.   └─noctua:::test_data(N) test-file-parser.R:24:2
   3.     ├─data.table::data.table(...) test-file-parser.R:17:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─noctua:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:19:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  ── Error (test-file-parser.R:87:3): Binary and json conversion ─────────────────
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─noctua:::output_test_data(size, test_file) test-file-parser.R:87:2
   2.   └─noctua:::test_data(N) test-file-parser.R:24:2
   3.     ├─data.table::data.table(...) test-file-parser.R:17:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─noctua:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:19:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  ── Error (test-file-parser.R:120:3): Check in conversion is turned off ─────────
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─noctua:::output_test_data(size, test_file) test-file-parser.R:120:2
   2.   └─noctua:::test_data(N) test-file-parser.R:24:2
   3.     ├─data.table::data.table(...) test-file-parser.R:17:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─noctua:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:19:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  ── Error (test-file-parser.R:148:3): Custom json parser ────────────────────────
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─noctua:::output_test_data(size, test_file) test-file-parser.R:148:2
   2.   └─noctua:::test_data(N) test-file-parser.R:24:2
   3.     ├─data.table::data.table(...) test-file-parser.R:17:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─noctua:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:19:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  ── Error (test-file-parser.R:173:3): Custom json parser ────────────────────────
  Error in `sample.int(length(x), size, replace, prob)`: invalid 'size' argument
  Backtrace:
      █
   1. └─noctua:::output_test_data(size, test_file) test-file-parser.R:173:2
   2.   └─noctua:::test_data(N) test-file-parser.R:24:2
   3.     ├─data.table::data.table(...) test-file-parser.R:17:2
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─noctua:::FUN(X[[i]], ...)
   7.           ├─base::paste(sample(letters, sample(5:10)), collapse = ",") test-file-parser.R:19:25
   8.           └─base::sample(letters, sample(5:10))
   9.             └─base::sample.int(length(x), size, replace, prob)
  
  [ FAIL 5 | WARN 0 | SKIP 53 | PASS 38 ]
  Error: Test failures
  Execution halted