Running ‘testthat.R’ [21s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(texPreview)
  > test_check("texPreview")
  This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
   restricted \write18 enabled.
  entering extended mode
  This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
   restricted \write18 enabled.
  entering extended mode
  This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
   restricted \write18 enabled.
  entering extended mode
  This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
   restricted \write18 enabled.
  entering extended mode
  This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
   restricted \write18 enabled.
  entering extended mode
  This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
   restricted \write18 enabled.
  entering extended mode
  ── 1. Error: (unknown) (@test-tex.R#124)  ──────────────────────────────────────
  Magick: delegate failed `'trace' --svg --output '%o' '%i'' @ error/delegate.c/InvokeDelegate/1928
  1: testthat::describe("use svg device", {
         x <- texPreview::tex_preview(obj = xtable::xtable(head(iris, 10)), stem = "danp-test")
         it("check if file created", {
             testthat::expect_equal(length(list.files(path, pattern = "svg$")), 1)
         })
     }) at testthat/test-tex.R:124
  2: eval(substitute(code), describe_environment)
  3: eval(substitute(code), describe_environment)
  4: texPreview::tex_preview(obj = xtable::xtable(head(iris, 10)), stem = "danp-test") at testthat/test-tex.R:126
  5: tex_image(obj, stem, write_flag, overwrite)
  6: magick::image_write(imgOut, file.path(fileDir, paste0(stem, ".", imgFormat)))
  7: magick_image_write(image, format, quality, depth, density, comment)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 17 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: (unknown) (@test-tex.R#124) 
  
  Error: testthat unit tests failed
  Execution halted