Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(texPreview)
  > test_check("texPreview")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Non Unix (1)
  • rmarkdown::pandoc_available(pandoc_version) is not TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-error.R:16:5): force an error: error message ──────────────────
  `texPreview::tex_preview(tex, marker = FALSE)` threw an error with unexpected message.
  Expected match: "Extra alignment tab"
  Actual message: "cannot open the connection"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-error.R:16:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─texPreview::tex_preview(tex, marker = FALSE)
    7. └─texPreview:::tex_preview.character(tex, marker = FALSE)
    8.   └─texPreview:::tex_preview.default(...)
    9.     └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   10.       └─base::readLines(temp_log)
   11.         └─base::file(con, "r")
  ── Error (test-kable.R:85:1): (code run outside of `test_that()`) ──────────────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
      █
   1. └─testthat::describe(...) test-kable.R:85:0
   2.   └─base::eval(substitute(code), describe_environment)
   3.     └─base::eval(substitute(code), describe_environment)
   4.       ├─texPreview::tex_preview(tex, returnType = "input") test-kable.R:87:2
   5.       └─texPreview:::tex_preview.character(tex, returnType = "input")
   6.         └─texPreview:::tex_preview.default(...)
   7.           └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   8.             └─base::readLines(temp_log)
   9.               └─base::file(con, "r")
  ── Error (test-print.R:13:1): (code run outside of `test_that()`) ──────────────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
      █
   1. └─testthat::describe(...) test-print.R:13:0
   2.   └─base::eval(substitute(code), describe_environment)
   3.     └─base::eval(substitute(code), describe_environment)
   4.       ├─texPreview::tex_preview(tex, returnType = "tex") test-print.R:15:2
   5.       └─texPreview:::tex_preview.character(tex, returnType = "tex")
   6.         └─texPreview:::tex_preview.default(...)
   7.           └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   8.             └─base::readLines(temp_log)
   9.               └─base::file(con, "r")
  ── Error (test-tex.R:12:3): (code run outside of `test_that()`) ────────────────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
       █
    1. └─testthat::describe(...) test-tex.R:12:2
    2.   └─base::eval(substitute(code), describe_environment)
    3.     └─base::eval(substitute(code), describe_environment)
    4.       ├─texPreview::tex_preview(obj = xtable::xtable(head(iris, 10))) test-tex.R:14:6
    5.       └─texPreview:::tex_preview.xtable(...)
    6.         ├─texPreview::tex_preview(...)
    7.         └─texPreview:::tex_preview.character(...)
    8.           └─texPreview:::tex_preview.default(...)
    9.             └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   10.               └─base::readLines(temp_log)
   11.                 └─base::file(con, "r")
  ── Error (test-utilities.R:14:7): build usepackage call: check library is installed ──
  Error in `check_package(pkg)`: neither tlmgr or mpm are installed and in %PATH%
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-utilities.R:14:6
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─texPreview::build_usepackage(pkg = "xcolor", chk.inst = TRUE)
   5.   └─texPreview:::check_package(pkg)
  ── Error (test-utilities.R:22:7): build usepackage call: use bad library name ──
  Error in `check_package(pkg)`: neither tlmgr or mpm are installed and in %PATH%
  Backtrace:
      █
   1. ├─testthat::expect_warning(...) test-utilities.R:22:6
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─texPreview::build_usepackage(pkg = "nopack", chk.inst = TRUE)
   7.   └─texPreview:::check_package(pkg)
  ── Error (test-viewer.R:20:5): viewer output: validate viewer ──────────────────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
       █
    1. ├─testthat::expect_output(...) test-viewer.R:20:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(temp, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─`%>%`(...)
   11. ├─texPreview::tex_preview(., returnType = "viewer", stem = "test_viewer")
   12. └─texPreview:::tex_preview.knitr_kable(...)
   13.   ├─texPreview::tex_preview(...)
   14.   └─texPreview:::tex_preview.character(...)
   15.     └─texPreview:::tex_preview.default(...)
   16.       └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   17.         └─base::readLines(temp_log)
   18.           └─base::file(con, "r")
  ── Error (test-viewer.R:36:5): shiny output: validate shiny output ─────────────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
       █
    1. ├─testthat::expect_null(...) test-viewer.R:36:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─`%>%`(...)
    5. ├─texPreview::tex_preview(., returnType = "shiny", stem = "test_shiny")
    6. └─texPreview:::tex_preview.knitr_kable(...)
    7.   ├─texPreview::tex_preview(...)
    8.   └─texPreview:::tex_preview.character(...)
    9.     └─texPreview:::tex_preview.default(...)
   10.       └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   11.         └─base::readLines(temp_log)
   12.           └─base::file(con, "r")
  
  [ FAIL 8 | WARN 12 | SKIP 2 | PASS 13 ]
  Error: Test failures
  Execution halted