Running 'author.R' [6s]
  Running 'dpi.R' [7s]
  Running 'dvi.R' [6s]
  Comparing 'dvi.Rout' to 'dvi.Rout.save' ...5,7d4
< xelatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
< luatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
< luaotfload-tool: critical issue: You are running MiKTeX on an unsupported version of Windows.
  Running 'fontspec.R' [21s]
  Running 'grid.dvi.R' [11s]
  Running 'grid.latex.R' [12s]
  Running 'luatex.R' [12s]
  Running 'package.R' [11s]
  Running 'size.R' [12s]
  Running 'typeset.R' [11s]
Running the tests in 'tests/fontspec.R' failed.
Complete output:
  > 
  > library(grid)
  > library(xdvir)
  xelatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luaotfload-tool: critical issue: You are running MiKTeX on an unsupported version of Windows.
  > 
  > ## Make debugging information available
  > options(tinytex.verbose=TRUE, xdvir.quiet=FALSE)
  > 
  > fontpath <- system.file("Fonts", "Montserrat", package="xdvir")
  > 
  > tex <- paste0("\\setmainfont{Montserrat-Regular.ttf}",
  +               ## On Windows, the path may contain ~
  +               "[Path=", gsub("~", "\\\\string~", fontpath), "/]\n",
  +               "This is a test")
  > 
  > ## Create .tex files within .Rcheck directory so that we can more easily
  > ## debug problems (or return them as artifacts from github runners)
  > texFile <- "test-fontspec.tex"
  > 
  > if (Sys.info()["sysname"] == "Darwin") {
  +     png("fontspec-%02d.png", type="quartz")
  + } else {
  +     ## "Windows" or "Linux"
  +     png("fontspec-%02d.png", type="cairo")
  + }
  > 
  > if (xdvir:::haveTeX()) {
  +     grid.newpage()
  +     grid.latex(tex, packages=fontspecPackage(), texFile=texFile, gp=NULL)
  + }
  ! lualatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  
  Error: LaTeX failed to compile test-fontspec.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See ./test-fontspec.log for more info.
  Execution halted
Running the tests in 'tests/grid.dvi.R' failed.
Complete output:
  > 
  > library(grid)
  > library(xdvir)
  xelatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luaotfload-tool: critical issue: You are running MiKTeX on an unsupported version of Windows.
  > 
  > ## Make debugging information available
  > options(tinytex.verbose=TRUE, xdvir.quiet=FALSE)
  > 
  > ## Existing DVI (so engine unknown AND packages unknown)
  > dviXeTeX <- readDVI(system.file("DVI", "test-xetex.xdv", package="xdvir"))
  > 
  > ## Font file paths based on my machine
  > if (Sys.getenv("USER") == "pmur002") {
  +     
  +     ## Fall back to dummy fontLib
  +     ## (glyph positioning is compromised)
  +     grid.newpage()
  +     tools::assertWarning(grid.dvi(dviXeTeX))
  + 
  +     grid.newpage()
  +     ## Warn about guessing DVI engine
  +     tools::assertWarning(grid.dvi(dviXeTeX))
  +     
  + }
  > 
  > ## Generate DVI
  > 
  > ## Create .tex files within .Rcheck directory so that we can more easily
  > ## debug problems (or return them as artifacts from github runners)
  > texFile <- "test-dvi.tex"
  > 
  > if (Sys.info()["sysname"] == "Darwin") {
  +     png("grid-dvi-%02d.png", type="quartz")
  + } else {
  +     ## "Windows" or "Linux"
  +     png("grid-dvi-%02d.png", type="cairo")
  + }
  > 
  > if (xdvir:::haveTeX()) {
  + 
  +     str <- r"(This is a test: $x - \mu$)"
  +     
  +     tex <- author(str)
  +     dvi <- typeset(tex, texFile=texFile)
  +     grid.newpage()
  +     grid.dvi(dvi)
  + 
  +     ## Explicit render engine that does NOT match typeset() engine
  +     tex <- author(str, engine="xetex")
  +     dvi <- typeset(tex, engine="xetex", texFile=texFile)
  +     grid.newpage()
  +     tools::assertWarning(grid.dvi(dvi, engine="null"))
  + 
  + }
  ! lualatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  
  Error: LaTeX failed to compile test-dvi.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See ./test-dvi.log for more info.
  Execution halted
Running the tests in 'tests/grid.latex.R' failed.
Complete output:
  > 
  > library(grid)
  > library(xdvir)
  xelatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luaotfload-tool: critical issue: You are running MiKTeX on an unsupported version of Windows.
  > 
  > ## Make debugging information available
  > options(tinytex.verbose=TRUE, xdvir.quiet=FALSE)
  > 
  > ## Create .tex files within .Rcheck directory so that we can more easily
  > ## debug problems (or return them as artifacts from github runners)
  > texFile <- "test-latex.tex"
  > 
  > if (Sys.info()["sysname"] == "Darwin") {
  +     png("grid-latex-%02d.png", type="quartz")
  + } else {
  +     ## "Windows" or "Linux"
  +     png("grid-latex-%02d.png", type="cairo")
  + }
  > 
  > if (xdvir:::haveTeX()) {
  + 
  +     grid.newpage()
  +     grid.latex("This is a test: $x - \\mu$", texFile=texFile)
  + 
  + }
  ! lualatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  
  Error: LaTeX failed to compile test-latex.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See ./test-latex.log for more info.
  Execution halted
Running the tests in 'tests/luatex.R' failed.
Complete output:
  > 
  > library(grid)
  > library(xdvir)
  xelatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luaotfload-tool: critical issue: You are running MiKTeX on an unsupported version of Windows.
  > 
  > ## Make debugging information available
  > options(tinytex.verbose=TRUE, xdvir.quiet=FALSE)
  > 
  > ## Create .tex files within .Rcheck directory so that we can more easily
  > ## debug problems (or return them as artifacts from github runners)
  > texFile <- "test-lualatex.tex"
  > 
  > if (Sys.info()["sysname"] == "Darwin") {
  +     png("luatex-%02d.png", type="quartz")
  + } else {
  +     ## "Windows" or "Linux"
  +     png("luatex-%02d.png", type="cairo")
  + }
  > 
  > if (xdvir:::haveTeX()) {
  + 
  +     str <- r"(This is a test: $x - \mu$)"
  + 
  +     if (xdvir:::luatexAvailable() && xdvir:::luaOTFloadToolSufficient()) {
  +         grid.newpage()
  +         grid.lualatex(str, texFile=texFile)
  +     }
  + 
  + }
  ! lualatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  
  Error: LaTeX failed to compile test-lualatex.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See ./test-lualatex.log for more info.
  Execution halted
Running the tests in 'tests/package.R' failed.
Complete output:
  > 
  > library(grid)
  > library(xdvir)
  xelatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luaotfload-tool: critical issue: You are running MiKTeX on an unsupported version of Windows.
  > 
  > ## Make debugging information available
  > options(tinytex.verbose=TRUE, xdvir.quiet=FALSE)
  > 
  > fontpath <- system.file("Fonts", "Montserrat", package="xdvir")
  > 
  > tex <- paste0("\\setmainfont{Montserrat-Regular.ttf}",
  +               ## On Windows, the path may contain ~
  +               "[Path=", gsub("~", "\\\\string~", fontpath), "/]\n",
  +               "This is a test")
  > 
  > ## Create .tex files within .Rcheck directory so that we can more easily
  > ## debug problems (or return them as artifacts from github runners)
  > texFile <- "test-package.tex"
  > 
  > if (Sys.info()["sysname"] == "Darwin") {
  +     png("package-%02d.png", type="quartz")
  + } else {
  +     ## "Windows" or "Linux"
  +     png("package-%02d.png", type="cairo")
  + }
  > 
  > if (xdvir:::haveTeX()) {
  + 
  +     ## Package as LaTeXpackage object
  +     grid.newpage()
  +     grid.latex(tex, packages=fontspecPackage(), texFile=texFile)
  + 
  +     ## Package as package alias
  +     grid.newpage()
  +     grid.latex(tex, packages="fontspec", texFile=texFile)
  +         
  +     ## TODO:
  +     ## Package in author, but not in render
  +     ## Package in render, but not in author
  +     ## ...
  + 
  + }
  ! lualatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  
  Error: LaTeX failed to compile test-package.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See ./test-package.log for more info.
  Execution halted
Running the tests in 'tests/size.R' failed.
Complete output:
  > 
  > library(xdvir)
  xelatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luaotfload-tool: critical issue: You are running MiKTeX on an unsupported version of Windows.
  > library(grid)
  > 
  > ## Make debugging information available
  > options(tinytex.verbose=TRUE, xdvir.quiet=FALSE)
  > 
  > ## Create .tex files within .Rcheck directory so that we can more easily
  > ## debug problems (or return them as artifacts from github runners)
  > texFile <- "test-size.tex"
  > 
  > if (Sys.info()["sysname"] == "Darwin") {
  +     png("size-%02d.png", type="quartz")
  + } else {
  +     ## "Windows" or "Linux"
  +     png("size-%02d.png", type="cairo")
  + }
  > 
  > if (xdvir:::haveTeX()) {
  +     grid.newpage()
  +     x <- latexGrob("\\Huge test", texFile=texFile)
  +     grid.draw(x)
  +     grid.rect(width=grobWidth(x), height=grobHeight(x), gp=gpar(fill=NA))
  +     grid.circle(grobX(x, "west"), grobY(x, "west"), r=unit(1, "mm"),
  +                 gp=gpar(fill="black"))
  + }
  ! lualatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  
  Error: LaTeX failed to compile test-size.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See ./test-size.log for more info.
  Execution halted
Running the tests in 'tests/typeset.R' failed.
Complete output:
  > 
  > library(xdvir)
  xelatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  luaotfload-tool: critical issue: You are running MiKTeX on an unsupported version of Windows.
  > 
  > ## Make debugging information available
  > options(tinytex.verbose=TRUE, xdvir.quiet=FALSE)
  > 
  > ## Create .tex files within .Rcheck directory so that we can more easily
  > ## debug problems (or return them as artifacts from github runners)
  > texFile <- "test-typeset.tex"
  > 
  > if (xdvir:::haveTeX()) {
  + 
  +     ## author() engine defaults 
  +     ## Typeset engine taken from author() engine
  +     tex <- author("This is a test: $x - \\mu$")
  +     typeset(tex, texFile=texFile)
  + 
  +     ## Explicit typeset engine that matches author() engine
  +     tex <- author("test", engine="xetex")
  +     typeset(tex, engine="xetex", texFile=texFile)
  + 
  +     ## Explicit typeset engine that does NOT match author() engine
  +     tex <- author("test", engine="null")
  +     tools::assertWarning(typeset(tex, engine="xetex", texFile=texFile))
  +         
  +     ## Manual TeX (so author engine unknown)
  +     ## Typeset engine defaults
  +     tex <- readLines(system.file("TeX", "test.tex", package="xdvir"))
  +     tools::assertWarning(typeset(tex, texFile=texFile))
  + 
  +     ## Manual TeX (so author engine unknown)
  +     ## AND explicit typeset engine 
  +     tex <- readLines(system.file("TeX", "test.tex", package="xdvir"))
  +     tools::assertWarning(typeset(tex, engine="xetex", texFile=texFile))
  + 
  + }
  ! lualatex: critical issue: You are running MiKTeX on an unsupported version of Windows.
  
  Error: LaTeX failed to compile test-typeset.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See ./test-typeset.log for more info.
  Execution halted