Running 'testthat.R' [3078m]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ggtikz)
  > 
  > test_check("ggtikz")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 286 ]
  
  ══ 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:5
    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. │                 └─pair$guide$draw(theme, params = pair$params)
   12. │                   └─ggplot2 (local) draw(..., self = self)
   13. │                     └─self$measure_grobs(grobs, params, elems)
   14. │                       └─ggplot2 (local) measure_grobs(...)
   15. │                         ├─grid::unit(measure(grobs$labels), "cm")
   16. │                         │ └─grid::is.unit(x)
   17. │                         └─ggplot2 (local) measure(grobs$labels)
   18. │                           └─base::vapply(x, height_cm, numeric(1))
   19. │                             └─ggplot2 (local) FUN(X[[i]], ...)
   20. │                               └─grid::convertHeight(grobHeight(x), "cm", TRUE)
   21. │                                 └─grid::convertUnit(...)
   22. │                                   └─grid:::grid.Call(...)
   23. ├─grid (local) `<fn>`(`<text>`)
   24. │ ├─grid::heightDetails(x)
   25. │ └─grid:::heightDetails.text(x)
   26. │   └─grid:::grid.Call(...)
   27. └─tikzDevice (local) `<fn>`(...)
   28.   └─tikzDevice:::getMetricsFromLatex(TeXMetrics, verbose = verbose)
   29.     └─base::readLines(texLog)
   30.       └─base::file(con, "r")
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 286 ]
  Error: Test failures
  Execution halted