Skip to content

[R-pkg-devel] pandoc lua filter error with win devel check

6 messages · Jeff Newmiller, Fernando Roa, Max Turgeon

#
Hi people,

I got an error in vignettes after checking as win. devel. with
devtools (check_win_devel):

pandoc.exe: unrecognized option `--lua-filter=refs/multiple-bibliographies.lua'

May I ignore it?

Best,
#
Pandoc is not part of the standard R documentation tooling... you must be doing something special, and doing something special makes getting a package accepted more challenging. Perhaps if you were more specific you might get a more specific response.
On January 6, 2020 1:38:44 PM PST, Fernando Roa <froao at unal.edu.co> wrote:

  
    
#
Hi
Rmarkdown supports lua filters. So I guess the rmarkdown and or pandoc in
win devel are not updated.

Best,


On Mon, Jan 6, 2020, 7:18 PM Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
wrote:

  
  
#
There was a discussion on this list last year about which version of pandoc is available on CRAN machines, without a definite answer: https://stat.ethz.ch/pipermail/r-package-devel/2019q2/004126.html


But I think it's completely possible that win-builder doesn't have pandoc 2.0, which is required for lua-filters AFAIK. On your side of things, the best you can do is to ensure that you add

"SystemRequirements: pandoc (>= 2.0)" (or something like that) to your DESCRIPTION file, and add a corresponding justification to your submission comments.


Max Turgeon
Assistant Professor
Department of Statistics
Department of Computer Science
University of Manitoba
maxturgeon.ca<http://maxturgeon.ca>
1 day later
#
Hi,
I added SystemRequirements: pandoc (>= 2.0) to DESCRIPTION as you
suggested; submission failed,
the automatic check of package submission to CRAN had the error I got
before with check_win_devel:

"pandoc.exe: unrecognized option
`--lua-filter=refs/multiple-bibliographies.lua'

Error: processing vignette 'index.Rmd' failed with diagnostics:
pandoc document conversion failed with error 2"

So, I am not sure what would be the next step for submitting.

Related info:

Vignette failure because pandoc ver. < 2 in Windows-R-Devel. Pandoc (>2)
needed for multiple bibliographies in vignette (with lua filter), see also:

https://stat.ethz.ch/pipermail/r-package-devel/2019q2/004127.html
https://stat.ethz.ch/pipermail/r-package-devel/2020q1/004814.html

https://cran.r-project.org/web/packages/rmarkdown/vignettes/lua-filters.html
https://pandoc.org/lua-filters.html

https://github.com/jgm/pandoc/releases (pandoc builds for every OS)

Best,
On Mon, Jan 6, 2020 at 8:03 PM Max Turgeon <Max.Turgeon at umanitoba.ca> wrote:

            

  
    
2 days later
#
Hi,
just a comment,
I found interesting that despite CRAN Solaris also not having pandoc > 2,
it deals with (pandoc_args: --lua-filter=) different to CRAN Windows Server.

This is the output of Solaris: (vignette does not crash - no error "in
submission")

"Warning in engine$weave(file, quiet = quiet, encoding = enc) :
  Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to
R Markdown v1."

It does not produce the error seen in Windows (pandoc < 2), which is:

"pandoc.exe: unrecognized option
`--lua-filter=refs/multiple-bibliographies.lua'

Error: processing vignette 'index.Rmd' failed with diagnostics:
pandoc document conversion failed with error 2"

So, it seems absence of pandoc, or being more outdated (solaris) is
"better" than the windows version, which crashes in presence of the
lua-filter.
(Consider also that vignettes in CRAN and browseVignettes() are not from
solaris or windows)

Best,
On Wed, Jan 8, 2020 at 2:59 PM Fernando Roa <froao at unal.edu.co> wrote: