Running ‘testthat.R’ [7s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(texPreview)
  > test_check("texPreview")
  ── 1. Failure: force an error: error message (@test-error.R#16)  ───────────────
  `texPreview::tex_preview(tex, marker = FALSE)` threw an error with unexpected message.
  Expected match: "Extra alignment tab"
  Actual message: " \n! LaTeX Error: File `/tmp/RtmpQNDMFz/tex_err/tex_temp.tex ' not found.\n\nType X to quit or <RETURN> to proceed,\nor enter new name. (Default extension: tex )\n\nEnter file name: \n! Emergency stop.\n<read *> \n \nl.17 ...ut{ /tmp/RtmpQNDMFz/tex_err/tex_temp.tex }\n ^^M \n!  ==> Fatal error occurred, no output PDF file produced!"
  Backtrace:
   1. testthat::expect_error(...)
   7. texPreview:::tex_preview.character(tex, marker = FALSE)
   8. texPreview:::tex_preview.default(...)
  
  ── 2. Error: (unknown) (@test-kable.R#85)  ─────────────────────────────────────
   
  ! LaTeX File `/tmp/RtmpQNDMFz/tex_temp.tex ' not found.
  
  Type X to quit or <RETURN> to proceed,
  or enter new name. (Default extension: tex )
  
  Enter file name: 
  ! Emergency stop.
  <read *> 
   
  l.17 \input{ /tmp/RtmpQNDMFz/tex_temp.tex }
   ^^M 
  !  ==> Fatal error occurred, no output PDF file produced!
  Backtrace:
   1. testthat::describe(...)
   2. [ base::eval(...) ] with 1 more call
   5. texPreview:::tex_preview.character(tex, returnType = "input")
   6. texPreview:::tex_preview.default(...)
  
  ── 3. Error: (unknown) (@test-print.R#13)  ─────────────────────────────────────
   
  ! LaTeX File `/tmp/RtmpQNDMFz/tex/tex_temp.tex ' not found.
  
  Type X to quit or <RETURN> to proceed,
  or enter new name. (Default extension: tex )
  
  Enter file name: 
  ! Emergency stop.
  <read *> 
   
  l.17 \input{ /tmp/RtmpQNDMFz/tex/tex_temp.tex }
   ^^M 
  !  ==> Fatal error occurred, no output PDF file produced!
  Backtrace:
   1. testthat::describe(...)
   2. [ base::eval(...) ] with 1 more call
   5. texPreview:::tex_preview.character(tex, returnType = "tex")
   6. texPreview:::tex_preview.default(...)
  
  ── 4. Error: (unknown)  ────────────────────────────────────────────────────────
   
  ! LaTeX File `/tmp/RtmpQNDMFz/rmd/test_html.tex ' not found.
  
  Type X to quit or <RETURN> to proceed,
  or enter new name. (Default extension: tex )
  
  Enter file name: 
  ! Emergency stop.
  <read *> 
   
  l.17 \input{ /tmp/RtmpQNDMFz/rmd/test_html.tex }
   ^^M 
  !  ==> Fatal error occurred, no output PDF file produced!
  Backtrace:
    1. utils::head(., 5)
   10. knitr::kable(., format = "latex", caption = "my table", label = "tbl1")
   12. texPreview::tex_preview(., returnType = "html", stem = "test_html")
   13. texPreview:::tex_preview.character(...)
    1. texPreview:::tex_preview.default(...)
  
  ── 5. Error: (unknown) (@test-tex.R#12)  ───────────────────────────────────────
   
  ! LaTeX File `/tmp/RtmpQNDMFz/tex/tex_temp.tex ' not found.
  
  Type X to quit or <RETURN> to proceed,
  or enter new name. (Default extension: tex )
  
  Enter file name: 
  ! Emergency stop.
  <read *> 
   
  l.17 \input{ /tmp/RtmpQNDMFz/tex/tex_temp.tex }
   ^^M 
  !  ==> Fatal error occurred, no output PDF file produced!
  Backtrace:
   1. testthat::describe(...)
   2. [ base::eval(...) ] with 1 more call
   5. texPreview:::tex_preview.xtable(...)
   7. texPreview:::tex_preview.character(...)
   8. texPreview:::tex_preview.default(...)
  
  TLPDB: not a directory, not loading: /home/hornik/lib/texmf/
  tlmgr: running in usermode, did you call `tlmgr init-usertree'?
  ── 6. Error: viewer output: validate viewer (@test-viewer.R#20)  ───────────────
   
  ! LaTeX File `/tmp/RtmpQNDMFz/rmd/test_viewer.tex ' not found.
  
  Type X to quit or <RETURN> to proceed,
  or enter new name. (Default extension: tex )
  
  Enter file name: 
  ! Emergency stop.
  <read *> 
   
  l.17 \input{ /tmp/RtmpQNDMFz/rmd/test_viewer.tex }
   ^^M 
  !  ==> Fatal error occurred, no output PDF file produced!
  Backtrace:
    1. testthat::expect_output(...)
   10. utils::head(., 5)
   19. knitr::kable(., format = "latex", caption = "my table", label = "tbl1")
   21. texPreview::tex_preview(., returnType = "viewer", stem = "test_viewer")
   22. texPreview:::tex_preview.character(...)
    1. texPreview:::tex_preview.default(...)
  
  ── 7. Error: shiny output: validate shiny output (@test-viewer.R#36)  ──────────
   
  ! LaTeX File `/tmp/RtmpQNDMFz/rmd/test_shiny.tex ' not found.
  
  Type X to quit or <RETURN> to proceed,
  or enter new name. (Default extension: tex )
  
  Enter file name: 
  ! Emergency stop.
  <read *> 
   
  l.17 \input{ /tmp/RtmpQNDMFz/rmd/test_shiny.tex }
   ^^M 
  !  ==> Fatal error occurred, no output PDF file produced!
  Backtrace:
    1. testthat::expect_null(...)
    4. utils::head(., 5)
   13. knitr::kable(., format = "latex", caption = "my table", label = "tbl1")
   15. texPreview::tex_preview(., returnType = "shiny", stem = "test_shiny")
   16. texPreview:::tex_preview.character(...)
    1. texPreview:::tex_preview.default(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 18 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 7 ]
  1. Failure: force an error: error message (@test-error.R#16) 
  2. Error: (unknown) (@test-kable.R#85) 
  3. Error: (unknown) (@test-print.R#13) 
  4. Error: (unknown) 
  5. Error: (unknown) (@test-tex.R#12) 
  6. Error: viewer output: validate viewer (@test-viewer.R#20) 
  7. Error: shiny output: validate shiny output (@test-viewer.R#36) 
  
  Error: testthat unit tests failed
  Execution halted