Re: [R-pkg-devel] Error while checking if Pandoc is available

2019-12-10 Thread Maëlle SALMON via R-package-devel
Furthermore, I think you can simply use rmarkdown::pandoc_available("1.12.3") to answer both questions (is pandoc available, is the particular version or a later version available). Maëlle. Den fredag 6 december 2019 17:30:28 CET, Henrik Bengtsson skrev: Hugh is correct. To clarify, up

Re: [R-pkg-devel] Error while checking if Pandoc is available

2019-12-06 Thread Henrik Bengtsson
Hugh is correct. To clarify, update if (!rmarkdown::pandoc_available() || rmarkdown::pandoc_version() < "1.12.3") { stop("'brinton' requires Pandoc v < 1.12.3 (https://pandoc.org/)") } The reason is that when using 'a || b', expression 'b' will NOT be evaluated if 'a' is not TRUE. In contrast,

Re: [R-pkg-devel] Error while checking if Pandoc is available

2019-12-06 Thread Hugh Parsonage
Change | to || On Fri, 6 Dec 2019 at 11:08 pm, Pere Millan Martinez wrote: > Yesterday the publication of the new brinton package war archived > (https://cran.r-project.org/web/packages/brinton/index.html) because the > following line produces the following error: > > if(rmarkdown::pandoc_availa