Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(popkin)
  > 
  > test_check('popkin')
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_popkin.R:75:5): get_mem_lim returns positive numbers ────────────
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
      █
   1. └─popkin:::get_mem_lim() test_popkin.R:75:4
   2.   └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  ── Error (test_popkin.R:133:5): solve_m_mem_lim works ──────────────────────────
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
      █
   1. └─popkin:::solve_m_mem_lim_TESTER(mat_m_n = 1) test_popkin.R:133:4
   2.   └─popkin:::solve_m_mem_lim(...) test_popkin.R:96:8
   3.     └─popkin:::get_mem_lim(factor = mem_factor)
   4.       └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  ── Error (test_popkin.R:250:5): function returns precomputed values: popkin_A ──
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
       █
    1. ├─testthat::expect_silent(obj <- popkin_A(X)) test_popkin.R:250:4
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─popkin::popkin_A(X)
   10.   └─popkin:::solve_m_mem_lim(...)
   11.     └─popkin:::get_mem_lim(factor = mem_factor)
   12.       └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  ── Error (test_popkin.R:313:5): function returns precomputed values: popkin ────
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
      █
   1. ├─testthat::expect_equal(popkin(X), Phi0) test_popkin.R:313:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─popkin::popkin(X)
   5.   └─popkin::popkin_A(...)
   6.     └─popkin:::solve_m_mem_lim(...)
   7.       └─popkin:::get_mem_lim(factor = mem_factor)
   8.         └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  ── Error (test_popkin.R:815:5): popkin_af works ────────────────────────────────
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
       █
    1. ├─testthat::expect_silent(coancestry2 <- popkin_af(P)) test_popkin.R:815:4
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─popkin::popkin_af(P)
   10.   └─popkin:::solve_m_mem_lim(...)
   11.     └─popkin:::get_mem_lim(factor = mem_factor)
   12.       └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  ── Error (test_popkin_BEDMatrix.R:17:9): function returns precomputed values: popkin_A ──
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
       █
    1. ├─testthat::expect_silent(obj <- popkin_A(X)) test_popkin_BEDMatrix.R:17:8
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─popkin::popkin_A(X)
   10.   └─popkin:::solve_m_mem_lim(...)
   11.     └─popkin:::get_mem_lim(factor = mem_factor)
   12.       └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  ── Error (test_popkin_BEDMatrix.R:25:9): function returns precomputed values: popkin ──
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
      █
   1. ├─testthat::expect_equal(popkin(X), Phi0) test_popkin_BEDMatrix.R:25:8
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─popkin::popkin(X)
   5.   └─popkin::popkin_A(...)
   6.     └─popkin:::solve_m_mem_lim(...)
   7.       └─popkin:::get_mem_lim(factor = mem_factor)
   8.         └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  ── Error (test_popkin_fn.R:34:5): function returns precomputed values: popkin_A ──
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
       █
    1. ├─testthat::expect_silent(obj <- popkin_A(Xf, n = n)) test_popkin_fn.R:34:4
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─popkin::popkin_A(Xf, n = n)
   10.   └─popkin:::solve_m_mem_lim(...)
   11.     └─popkin:::get_mem_lim(factor = mem_factor)
   12.       └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  ── Error (test_popkin_fn.R:42:5): function returns precomputed values: popkin ──
  Error in `system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)`: 'wmic' not found
  Backtrace:
      █
   1. ├─testthat::expect_equal(popkin(Xf, n = n), Phi0) test_popkin_fn.R:42:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─popkin::popkin(Xf, n = n)
   5.   └─popkin::popkin_A(...)
   6.     └─popkin:::solve_m_mem_lim(...)
   7.       └─popkin:::get_mem_lim(factor = mem_factor)
   8.         └─base::system("wmic OS get FreePhysicalMemory /Value", intern = TRUE)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 322 ]
  Error: Test failures
  Execution halted