Running ‘testthat.R’ [31s/41s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(texPreview)
  > test_check("texPreview")
  OMP: Warning #96: Cannot form a team with 5 threads, using 2 instead.
  OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 32 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-tex.R:115:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-rmd.R:7:1'): (code run outside of `test_that()`) ───────────────
  Error: LaTeX failed to compile test_htmlDoc.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See test_htmlDoc.log for more info.
  Backtrace:
       ▆
    1. └─testthat::describe(...) at test-rmd.R:7:0
    2.   └─base::eval(substitute(code), describe_environment)
    3.     └─base::eval(substitute(code), describe_environment)
    4.       └─texPreview:::safe_render(...) at test-rmd.R:9:2
    5.         ├─rmarkdown::render(...) at tests/testthat/helper-functions.R:27:2
    6.         │ └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    7.         │   └─knitr:::process_file(text, output)
    8.         │     ├─base::withCallingHandlers(...)
    9.         │     ├─base::withCallingHandlers(...)
   10.         │     ├─knitr:::process_group(group)
   11.         │     └─knitr:::process_group.block(group)
   12.         │       └─knitr:::call_block(x)
   13.         │         └─knitr:::block_exec(params)
   14.         │           └─knitr:::eng_r(options)
   15.         │             ├─knitr:::in_input_dir(...)
   16.         │             │ └─knitr:::in_dir(input_dir(), expr)
   17.         │             └─knitr (local) evaluate(...)
   18.         │               └─evaluate::evaluate(...)
   19.         │                 └─evaluate:::evaluate_call(...)
   20.         │                   ├─evaluate (local) timing_fn(...)
   21.         │                   ├─base (local) handle(...)
   22.         │                   ├─base::withCallingHandlers(...)
   23.         │                   ├─base::withVisible(...)
   24.         │                   └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers)
   25.         │                     └─base::eval(expr, envir, enclos)
   26.         │                       └─base::eval(expr, envir, enclos)
   27.         ├─texPreview::tex_preview(...)
   28.         └─texPreview:::tex_preview.knitr_kable(...)
   29.           ├─texPreview::tex_preview(...)
   30.           └─texPreview:::tex_preview.character(...)
   31.             └─texPreview:::tex_preview.default(...)
   32.               └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   33.                 └─tinytex::latexmk(...)
   34.                   └─tinytex:::latexmk_emu(...)
   35.                     └─tinytex (local) run_engine()
   36.                       ├─tinytex:::system2_quiet(...)
   37.                       └─tinytex (local) on_error()
   38.                         └─tinytex:::show_latex_error(file, logfile)
  ── Error ('test-viewer.R:20:5'): viewer output: validate viewer ────────────────
  Error: LaTeX failed to compile test_viewerDoc.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See test_viewerDoc.log for more info.
  Backtrace:
       ▆
    1. ├─testthat::expect_output(...) at test-viewer.R:20:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .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(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─texPreview::tex_preview(...)
   11. └─texPreview:::tex_preview.knitr_kable(...)
   12.   ├─texPreview::tex_preview(...)
   13.   └─texPreview:::tex_preview.character(...)
   14.     └─texPreview:::tex_preview.default(...)
   15.       └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   16.         └─tinytex::latexmk(...)
   17.           └─tinytex:::latexmk_emu(...)
   18.             └─tinytex (local) run_engine()
   19.               ├─tinytex:::system2_quiet(...)
   20.               └─tinytex (local) on_error()
   21.                 └─tinytex:::show_latex_error(file, logfile)
  ── Error ('test-viewer.R:36:5'): shiny output: validate shiny output ───────────
  Error: LaTeX failed to compile test_shinyDoc.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See test_shinyDoc.log for more info.
  Backtrace:
       ▆
    1. ├─testthat::expect_null(...) at test-viewer.R:36:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─texPreview::tex_preview(...)
    5. └─texPreview:::tex_preview.knitr_kable(...)
    6.   ├─texPreview::tex_preview(...)
    7.   └─texPreview:::tex_preview.character(...)
    8.     └─texPreview:::tex_preview.default(...)
    9.       └─texPreview:::tex_build(tex_lines, stem, tex_message, ...)
   10.         └─tinytex::latexmk(...)
   11.           └─tinytex:::latexmk_emu(...)
   12.             └─tinytex (local) run_engine()
   13.               ├─tinytex:::system2_quiet(...)
   14.               └─tinytex (local) on_error()
   15.                 └─tinytex:::show_latex_error(file, logfile)
  
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 32 ]
  Error: Test failures
  Execution halted