Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(texor)
  > 
  > test_check("texor")
  Converting page 1 to /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/pdf_conversion/normal.png... done!
  removing the unnecessary option fig=TRUE:
      * image,fig=TRUE, fig.cap="matrix package's image"
  removing the unnecessary option fig=TRUE:
      * keep.source=TRUE, fig=TRUE
  changing keep.source=TRUE to tidy=FALSE:
      * keep.source=TRUE,
  changing \SweaveOpts{} to opts_chunk$set():
      * \SweaveOpts{keep.source=TRUE, fig=TRUE}
  /usr/bin/pandoc +RTS -K512m -RTS /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/example-knitr.Rnw --to markdown-simple_tables-pipe_tables-fenced_code_attributes --from latex --output /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/example-knitr-part1.md --resource-path /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article -f /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/sweave_code_reader.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/r_code_chunk_patcher.lua 
  /usr/bin/pandoc +RTS -K512m -RTS /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/example-knitr.Rnw --to latex --from latex --output /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/example-generated.tex --resource-path /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article -f /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/sweave_code_remove.lua 
  /usr/bin/pandoc +RTS -K512m -RTS /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/example-generated.tex --to markdown-simple_tables-pipe_tables-fenced_code_attributes --from latex --output /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/example-knitr-part2.md --resource-path /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article -f /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/algorithm_reader.lua 
  /usr/bin/pandoc +RTS -K512m -RTS /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/example-generated.tex --to latex --from latex --output /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/example-generated.tex --resource-path /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article -f /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/algorithm_remove.lua 
  Found Bib file  example.bib
  Cannot aggregate bibliography as there is no embedded bibliography
  Found 0 Matches for target :  example
  Found 0 Matches for target :  example
  Found 0 Matches for target :  example\*
  Found 0 Matches for target :  example\*
  Found 0 Matches for target :  Sin
  Found 0 Matches for target :  Sin
  Found 0 Matches for target :  Sout
  Found 0 Matches for target :  Sout
  Found 0 Matches for target :  Scode
  Found 0 Matches for target :  Scode
  Found 0 Matches for target :  Sinput
  Found 0 Matches for target :  Sinput
  Found 0 Matches for target :  Soutput
  Found 0 Matches for target :  Soutput
  Found 0 Matches for target :  smallverbatim
  Found 0 Matches for target :  smallverbatim
  Found 0 Matches for target :  boxedverbatim
  Found 0 Matches for target :  boxedverbatim
  Found 0 Matches for target :  smallexample
  Found 0 Matches for target :  smallexample
  Found 0 Matches for target :  table\*
  Changed \begin{table\*} to \begin{table}
  Found 0 Matches for target :  table\*
  Changed \end{table*} to \end{table}
  Found 0 Matches for target :  multicolumn
  changed \multicolumn to \multicolumnx
  Found 0 Matches for target :  widetable
  Changed \begin{widetable} to \begin{table}
  Found 0 Matches for target :  widetable
  Changed \end{widetable} to \end{table}
  Auto add label for table env
  Found 0 Matches for target :  figure\*
  Changed \begin{figure\*} to \begin{figure}
  Found 0 Matches for target :  figure\*
  Changed \end{figure\*} to \end{figure}
  Found 0 Matches for target :  widefigure
  Changed \begin{widefigure} to \begin{figure}
  Found 0 Matches for target :  widefigure
  Changed \end{widefigure} to \end{figure}
  Found 0 Matches for target :  widefigure\*
  Changed \begin{widefigure\*} to \begin{figure}
  Found 0 Matches for target :  widefigure\*
  Changed \end{widefigure\*} to \end{figure}
  /usr/bin/pandoc +RTS -K512m -RTS /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/RJwrapper.tex --to native --from latex --output /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/temp-native.txt -s --resource-path /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/RJwrapper.tex --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/find_pdf_files.lua 
  Found 0 Matches for target :  figure\*
  Changed \begin{figure\*} to \begin{figure}
  Found 0 Matches for target :  figure\*
  Changed \end{figure\*} to \end{figure}
  Found 0 Matches for target :  widefigure
  Changed \begin{widefigure} to \begin{figure}
  Found 0 Matches for target :  widefigure
  Changed \end{widefigure} to \end{figure}
  Found 0 Matches for target :  widefigure\*
  Changed \begin{widefigure\*} to \begin{figure}
  Found 0 Matches for target :  widefigure\*
  Changed \end{widefigure\*} to \end{figure}
  Found 0 Matches for target :  algorithm
  Changed \begin{algorithm} to \begin{figure}
  Found 0 Matches for target :  algorithm
  Changed \end{algorithm} to \end{figure}
  /usr/bin/pandoc +RTS -K512m -RTS /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/RJwrapper.tex --to markdown-simple_tables-pipe_tables-fenced_code_attributes --from latex --output /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article/RJwrapper.md -s --resource-path /home/hornik/tmp/scratch/RtmpcTvW0s/tempdir/sweave_article --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/issue_checker.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/abs_filter.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/bib_filter.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/equation_filter.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/image_filter.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/sec_depth.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/fig_code_chunk.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/widetable_patcher.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/R_code.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/table_caption.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/table_code_chunk.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/conversion_compat_check.lua --lua-filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/bookdown_ref.lua --citeproc 
  Error running filter /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/texor/fig_code_chunk.lua:
  table expected, got Caption
  stack traceback:
  	...devel-clang/Work/build/Packages/texor/fig_code_chunk.lua:116: in function 'Figure'
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 18 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-rnw-tools.R:7:5'): Convert Rnw to Rmd ──────────────────────────
  Error: pandoc document conversion failed with error 83
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-rnw-tools.R:7:5
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─texor::rnw_to_rmd(...)
   5.   └─texor::convert_to_markdown(...)
   6.     └─rmarkdown::pandoc_convert(...)
   7.       └─rmarkdown:::stop2(...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 18 ]
  Error: Test failures
  Execution halted