Running 'testthat.R' [83s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ggtikz)
  > 
  > test_check("ggtikz")
  [ FAIL 5 | WARN 4 | SKIP 0 | PASS 247 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ggtikzCanvas.R:21:5'): conversion from data coordinates to npc works ──
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─ggtikz::ggtikzCanvas(p) at test-ggtikzCanvas.R:21:4
    2. │ ├─ggplot2::ggplot_gtable(built)
    3. │ └─ggplot2:::ggplot_gtable.ggplot_built(built)
    4. │   └─layout$render(geom_grobs, data, theme, plot$labels)
    5. │     └─ggplot2 (local) render(..., self = self)
    6. │       └─self$facet$draw_panels(...)
    7. │         └─ggplot2 (local) draw_panels(...)
    8. │           └─coord$render_axis_h(range, theme)
    9. │             └─ggplot2 (local) render_axis_h(...)
   10. │               └─ggplot2:::panel_guides_grob(...)
   11. │                 ├─ggplot2::guide_gengrob(guide, theme)
   12. │                 └─ggplot2:::guide_gengrob.axis(guide, theme)
   13. │                   └─ggplot2:::draw_axis(...)
   14. │                     └─base::lapply(...)
   15. │                       └─ggplot2 (local) FUN(X[[i]], ...)
   16. │                         └─ggplot2:::draw_axis_labels(...)
   17. │                           ├─rlang::exec(...)
   18. │                           ├─ggplot2 (local) `<fn>`(...)
   19. │                           └─ggplot2:::element_grob.element_text(...)
   20. │                             └─ggplot2:::titleGrob(...)
   21. │                               └─ggplot2:::title_spec(...)
   22. │                                 └─ggplot2:::font_descent(...)
   23. │                                   └─grid::convertHeight(...)
   24. │                                     └─grid::convertUnit(...)
   25. │                                       └─grid:::grid.Call(...)
   26. ├─grid (local) `<fn>`(`<text>`)
   27. ├─grid:::descentDetails.text(`<text>`)
   28. │ └─grid:::grid.Call(C_stringMetric, as.graphicsAnnot(x$label))
   29. └─tikzDevice (local) `<fn>`(...)
   30.   └─tikzDevice:::getMetricsFromLatex(TeXMetrics, verbose = verbose)
   31.     └─base::readLines(texLog)
   32.       └─base::file(con, "r")
  ── Error ('test-ggtikzCanvas.R:46:5'): panel axis ranges are returned correctly ──
  Error in `system(latexCmd, intern = TRUE, ignore.stderr = TRUE)`: 'CreateProcess' failed to run 'C:\PROGRA~1\MiKTeX\miktex\bin\x64\pdflatex.exe -interaction=batchmode -halt-on-error -output-directory "D:\temp\RtmpU3bpfX\tikzDevice2e93c15287bdf" "tikzStringWidthCalc.tex"'
  Backtrace:
       ▆
    1. ├─ggtikz (local) expect_ranges_equal(ggtikzCanvas(p), 1, 1, c(1, 5), c(6, 10)) at test-ggtikzCanvas.R:46:4
    2. │ └─ggtikz:::get_panel_range(canvas, panelx, panely) at test-ggtikzCanvas.R:38:4
    3. ├─ggtikz::ggtikzCanvas(p)
    4. │ ├─ggplot2::ggplot_gtable(built)
    5. │ └─ggplot2:::ggplot_gtable.ggplot_built(built)
    6. │   └─layout$render(geom_grobs, data, theme, plot$labels)
    7. │     └─ggplot2 (local) render(..., self = self)
    8. │       └─self$facet$draw_panels(...)
    9. │         └─ggplot2 (local) draw_panels(...)
   10. │           └─coord$render_axis_h(range, theme)
   11. │             └─ggplot2 (local) render_axis_h(...)
   12. │               └─ggplot2:::panel_guides_grob(...)
   13. │                 ├─ggplot2::guide_gengrob(guide, theme)
   14. │                 └─ggplot2:::guide_gengrob.axis(guide, theme)
   15. │                   └─ggplot2:::draw_axis(...)
   16. │                     └─base::lapply(...)
   17. │                       └─ggplot2 (local) FUN(X[[i]], ...)
   18. │                         └─ggplot2:::draw_axis_labels(...)
   19. │                           ├─rlang::exec(...)
   20. │                           ├─ggplot2 (local) `<fn>`(...)
   21. │                           └─ggplot2:::element_grob.element_text(...)
   22. │                             └─ggplot2:::titleGrob(...)
   23. │                               └─ggplot2:::title_spec(...)
   24. │                                 └─ggplot2:::font_descent(...)
   25. │                                   └─grid::convertHeight(...)
   26. │                                     └─grid::convertUnit(...)
   27. │                                       └─grid:::grid.Call(...)
   28. ├─grid (local) `<fn>`(`<text>`)
   29. ├─grid:::descentDetails.text(`<text>`)
   30. │ └─grid:::grid.Call(C_stringMetric, as.graphicsAnnot(x$label))
   31. └─tikzDevice (local) `<fn>`(...)
   32.   └─tikzDevice:::getMetricsFromLatex(TeXMetrics, verbose = verbose)
   33.     ├─base::suppressWarnings(system(latexCmd, intern = TRUE, ignore.stderr = TRUE))
   34.     │ └─base::withCallingHandlers(...)
   35.     └─base::system(latexCmd, intern = TRUE, ignore.stderr = TRUE)
  ── Error ('test-ggtikzCanvas.R:92:5'): reference points are calculated correctly ──
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─ggtikz (local) expect_ref_equal(...) at test-ggtikzCanvas.R:92:4
    2. │ └─ggtikz::ggtikzCanvas(p) at test-ggtikzCanvas.R:82:4
    3. │   ├─ggplot2::ggplot_gtable(built)
    4. │   └─ggplot2:::ggplot_gtable.ggplot_built(built)
    5. │     └─layout$render(geom_grobs, data, theme, plot$labels)
    6. │       └─ggplot2 (local) render(..., self = self)
    7. │         └─self$facet$draw_panels(...)
    8. │           └─ggplot2 (local) draw_panels(...)
    9. │             └─coord$render_axis_h(range, theme)
   10. │               └─ggplot2 (local) render_axis_h(...)
   11. │                 └─ggplot2:::panel_guides_grob(...)
   12. │                   ├─ggplot2::guide_gengrob(guide, theme)
   13. │                   └─ggplot2:::guide_gengrob.axis(guide, theme)
   14. │                     └─ggplot2:::draw_axis(...)
   15. │                       └─base::lapply(...)
   16. │                         └─ggplot2 (local) FUN(X[[i]], ...)
   17. │                           └─ggplot2:::draw_axis_labels(...)
   18. │                             ├─rlang::exec(...)
   19. │                             ├─ggplot2 (local) `<fn>`(...)
   20. │                             └─ggplot2:::element_grob.element_text(...)
   21. │                               └─ggplot2:::titleGrob(...)
   22. │                                 └─ggplot2:::title_spec(...)
   23. │                                   └─ggplot2:::font_descent(...)
   24. │                                     └─grid::convertHeight(...)
   25. │                                       └─grid::convertUnit(...)
   26. │                                         └─grid:::grid.Call(...)
   27. ├─grid (local) `<fn>`(`<text>`)
   28. ├─grid:::descentDetails.text(`<text>`)
   29. │ └─grid:::grid.Call(C_stringMetric, as.graphicsAnnot(x$label))
   30. └─tikzDevice (local) `<fn>`(...)
   31.   └─tikzDevice:::getMetricsFromLatex(TeXMetrics, verbose = verbose)
   32.     └─base::readLines(texLog)
   33.       └─base::file(con, "r")
  ── Error ('test-ggtikzCanvas.R:115:5'): Panel viewport names are determined correctly ──
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─ggtikz (local) expect_vp_name_equal(p_wrap1, 1, 1, "panel-1-1.8-5-8-5") at test-ggtikzCanvas.R:115:4
    2. │ └─ggtikz (local) vp_from_p(p, panelx, panely) at test-ggtikzCanvas.R:106:4
    3. │   └─ggtikz::ggtikzCanvas(p) at test-ggtikzCanvas.R:101:4
    4. │     ├─ggplot2::ggplot_gtable(built)
    5. │     └─ggplot2:::ggplot_gtable.ggplot_built(built)
    6. │       └─layout$render(geom_grobs, data, theme, plot$labels)
    7. │         └─ggplot2 (local) render(..., self = self)
    8. │           └─self$facet$draw_panels(...)
    9. │             └─ggplot2 (local) draw_panels(..., self = self)
   10. │               └─ggplot2::render_axes(ranges, ranges, coord, theme, transpose = TRUE)
   11. │                 └─base::lapply(x, coord$render_axis_h, theme)
   12. │                   └─ggplot2 (local) FUN(X[[i]], ...)
   13. │                     └─ggplot2 (local) render_axis_h(...)
   14. │                       └─ggplot2:::panel_guides_grob(...)
   15. │                         ├─ggplot2::guide_gengrob(guide, theme)
   16. │                         └─ggplot2:::guide_gengrob.axis(guide, theme)
   17. │                           └─ggplot2:::draw_axis(...)
   18. │                             └─base::lapply(...)
   19. │                               └─ggplot2 (local) FUN(X[[i]], ...)
   20. │                                 └─ggplot2:::draw_axis_labels(...)
   21. │                                   ├─rlang::exec(...)
   22. │                                   ├─ggplot2 (local) `<fn>`(...)
   23. │                                   └─ggplot2:::element_grob.element_text(...)
   24. │                                     └─ggplot2:::titleGrob(...)
   25. │                                       └─ggplot2:::title_spec(...)
   26. │                                         └─ggplot2:::font_descent(...)
   27. │                                           └─grid::convertHeight(...)
   28. │                                             └─grid::convertUnit(...)
   29. │                                               └─grid:::grid.Call(...)
   30. ├─grid (local) `<fn>`(`<text>`)
   31. ├─grid:::descentDetails.text(`<text>`)
   32. │ └─grid:::grid.Call(C_stringMetric, as.graphicsAnnot(x$label))
   33. └─tikzDevice (local) `<fn>`(...)
   34.   └─tikzDevice:::getMetricsFromLatex(TeXMetrics, verbose = verbose)
   35.     └─base::readLines(texLog)
   36.       └─base::file(con, "r")
  ── Error ('test-ggtikzCanvas.R:160:5'): Panel viewports can be activated ───────
  Error in `file(con, "r")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─ggtikz (local) check_activated_vp(p_grid1, 1, 1, "panel-1-1.8-5-8-5") at test-ggtikzCanvas.R:160:4
    2. │ └─ggtikz::ggtikzCanvas(p) at test-ggtikzCanvas.R:148:4
    3. │   ├─ggplot2::ggplot_gtable(built)
    4. │   └─ggplot2:::ggplot_gtable.ggplot_built(built)
    5. │     └─layout$render(geom_grobs, data, theme, plot$labels)
    6. │       └─ggplot2 (local) render(..., self = self)
    7. │         └─self$facet$draw_panels(...)
    8. │           └─ggplot2 (local) draw_panels(...)
    9. │             └─ggplot2::render_axes(...)
   10. │               └─base::lapply(x, coord$render_axis_h, theme)
   11. │                 └─ggplot2 (local) FUN(X[[i]], ...)
   12. │                   └─ggplot2 (local) render_axis_h(...)
   13. │                     └─ggplot2:::panel_guides_grob(...)
   14. │                       ├─ggplot2::guide_gengrob(guide, theme)
   15. │                       └─ggplot2:::guide_gengrob.axis(guide, theme)
   16. │                         └─ggplot2:::draw_axis(...)
   17. │                           └─base::lapply(...)
   18. │                             └─ggplot2 (local) FUN(X[[i]], ...)
   19. │                               └─ggplot2:::draw_axis_labels(...)
   20. │                                 ├─rlang::exec(...)
   21. │                                 ├─ggplot2 (local) `<fn>`(...)
   22. │                                 └─ggplot2:::element_grob.element_text(...)
   23. │                                   └─ggplot2:::titleGrob(...)
   24. │                                     └─ggplot2:::title_spec(...)
   25. │                                       └─ggplot2:::font_descent(...)
   26. │                                         └─grid::convertHeight(...)
   27. │                                           └─grid::convertUnit(...)
   28. │                                             └─grid:::grid.Call(...)
   29. ├─grid (local) `<fn>`(`<text>`)
   30. ├─grid:::descentDetails.text(`<text>`)
   31. │ └─grid:::grid.Call(C_stringMetric, as.graphicsAnnot(x$label))
   32. └─tikzDevice (local) `<fn>`(...)
   33.   └─tikzDevice:::getMetricsFromLatex(TeXMetrics, verbose = verbose)
   34.     └─base::readLines(texLog)
   35.       └─base::file(con, "r")
  
  [ FAIL 5 | WARN 4 | SKIP 0 | PASS 247 ]
  Error: Test failures
  Execution halted