Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(popkin)
  > 
  > test_check('popkin')
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test_popkin.R:43:5): get_mem_lim returns positive numbers ──────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::get_mem_lim() test_popkin.R:43:4
  ── Warning (test_popkin.R:101:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(mat_m_n = 1) test_popkin.R:101:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:102:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(mat_m_n = 1, mat_n_n = 1) test_popkin.R:102:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:103:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(mat_m_n = 1, vec_n = 1) test_popkin.R:103:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:104:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(mat_m_n = 1, vec_n = 1, mat_n_n = 1) test_popkin.R:104:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:105:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(vec_m = 1) test_popkin.R:105:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:106:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(vec_m = 1, mat_n_n = 1) test_popkin.R:106:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:107:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(vec_m = 1, vec_n = 1) test_popkin.R:107:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:108:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(vec_m = 1, vec_n = 1, mat_n_n = 1) test_popkin.R:108:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:109:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(mat_m_n = 1, vec_m = 1) test_popkin.R:109:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:110:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(mat_m_n = 1, vec_m = 1, mat_n_n = 1) test_popkin.R:110:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:111:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(mat_m_n = 1, vec_m = 1, vec_n = 1) test_popkin.R:111:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:112:5): solve_m_mem_lim works ────────────────────────
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. popkin:::solve_m_mem_lim_TESTER(...) test_popkin.R:112:4
   2. popkin:::solve_m_mem_lim(...) test_popkin.R:64:8
   3. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:213:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(X), Phi0) test_popkin.R:213:4
   4. popkin::popkin(X)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:214:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(X, subpops0), Phi0) test_popkin.R:214:4
   4. popkin::popkin(X, subpops0)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:215:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(X, subpops), Phi) test_popkin.R:215:4
   4. popkin::popkin(X, subpops)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:216:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(X + 0, subpops), Phi) test_popkin.R:216:4
   4. popkin::popkin(X + 0, subpops)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:217:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(2L - X, subpops), Phi) test_popkin.R:217:4
   4. popkin::popkin(2L - X, subpops)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:218:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(2 - X, subpops), Phi) test_popkin.R:218:4
   4. popkin::popkin(2 - X, subpops)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin.R:221:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(X, subpops, m_chunk_max = 1), Phi) test_popkin.R:221:4
   4. popkin::popkin(X, subpops, m_chunk_max = 1)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin_BEDMatrix.R:25:9): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(X), Phi0) test_popkin_BEDMatrix.R:25:8
   4. popkin::popkin(X)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin_BEDMatrix.R:26:9): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(X, subpops0), Phi0) test_popkin_BEDMatrix.R:26:8
   4. popkin::popkin(X, subpops0)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin_BEDMatrix.R:27:9): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(X, subpops), Phi) test_popkin_BEDMatrix.R:27:8
   4. popkin::popkin(X, subpops)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin_fn.R:42:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(Xf, n = n), Phi0) test_popkin_fn.R:42:4
   4. popkin::popkin(Xf, n = n)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin_fn.R:43:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(Xf, subpops0), Phi0) test_popkin_fn.R:43:4
   4. popkin::popkin(Xf, subpops0)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  ── Warning (test_popkin_fn.R:44:5): function returns precomputed values: popkin ──
  Could not infer available memory, will default to 1GB!
  Please specify a memory limit if your run exceeds memory or if default is too low!
  Backtrace:
   1. testthat::expect_equal(popkin(Xf, subpops), Phi) test_popkin_fn.R:44:4
   4. popkin::popkin(Xf, subpops)
   5. popkin::popkin_A(...)
   6. popkin:::solve_m_mem_lim(...)
   7. popkin:::get_mem_lim(factor = mem_factor)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_popkin.R:150:5): function returns precomputed values: popkin_A ──
  `obj <- popkin_A(X)` produced warnings.
  ── Failure (test_popkin.R:155:5): function returns precomputed values: popkin_A ──
  `obj <- popkin_A(X + 0)` produced warnings.
  ── Failure (test_popkin.R:160:5): function returns precomputed values: popkin_A ──
  `obj <- popkin_A(2L - X)` produced warnings.
  ── Failure (test_popkin.R:165:5): function returns precomputed values: popkin_A ──
  `obj <- popkin_A(2 - X)` produced warnings.
  ── Failure (test_popkin.R:171:5): function returns precomputed values: popkin_A ──
  `obj <- popkin_A(X, m_chunk_max = 1)` produced warnings.
  ── Failure (test_popkin.R:225:5): function returns precomputed values: popkin ──
  `obj <- popkin(X, want_M = TRUE)` produced warnings.
  ── Failure (test_popkin.R:229:5): function returns precomputed values: popkin ──
  `obj <- popkin(X, subpops, want_M = TRUE)` produced warnings.
  ── Failure (test_popkin_BEDMatrix.R:17:9): function returns precomputed values: popkin_A ──
  `obj <- popkin_A(X)` produced warnings.
  ── Failure (test_popkin_fn.R:34:5): function returns precomputed values: popkin_A ──
  `obj <- popkin_A(Xf, n = n)` produced warnings.
  
  [ FAIL 9 | WARN 26 | SKIP 0 | PASS 407 ]
  Error: Test failures
  Execution halted